Skip to content

Instantly share code, notes, and snippets.

@groyoh
Last active January 13, 2016 15:25
Show Gist options
  • Save groyoh/fb6f6f096b2929354fb3 to your computer and use it in GitHub Desktop.
Save groyoh/fb6f6f096b2929354fb3 to your computer and use it in GitHub Desktop.
Fish config
# Global variables
setenv FISH_PATH "~/.config/fish/"
setenv FISH_CONF "$FISH_PATH/config.fish"
# Aliases
alias cpy "xsel -i -b"
alias conf "e $FISH_CONF"
alias load-conf ". $FISH_CONF"
# Source files
. ./emacs.fish
. ./ruby.fish
alias e emacs
alias se sudo emacs
alias ed emacs --daemon
alias ec emacsclient -t
alias sec sudo emacsclient -t"
setenv ALTERNATE_EDITOR ""
setenv EDITOR "emacsclient -t"
setenv VISUAL "emacsclient -c -a emacs"
setenv PATH "$HOME/.rbenv/bin" $PATH
setenv PATH '/home/yor/.rbenv/shims' $PATH
setenv RBENV_SHELL fish
. '/home/yor/.rbenv/libexec/../completions/rbenv.fish'
command rbenv rehash 2>/dev/null
function rb
set command $argv[1]
set -e argv[1]
switch "$command"
case rehash shell
. (rbenv "sh-$command" $argv|psub)
case '*'
command rbenv "$command" $argv
end
end
alias rbv rb version
alias rbi rb install
alias rbu rb uninstall
alias rbl rb local
alias rbg rb global
alias rbs rb shell
alias bi "bundle install"
alias bu "bundle update"
alias bo "bundle update"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment