Skip to content

Instantly share code, notes, and snippets.

@robinclart
Last active January 8, 2017 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinclart/300ed1c6ada0d3548faf8943ab68aafa to your computer and use it in GitHub Desktop.
Save robinclart/300ed1c6ada0d3548faf8943ab68aafa to your computer and use it in GitHub Desktop.
.config/fish/config.fish
set GOROOT /usr/local/opt/go/libexec
set GOPATH ~/src
set EDITOR 'mate -w'
set PATH ./bin ~/bin ~/.rbenv/shims $PATH $GOROOT/bin
alias m "mate"
alias mm "mate ."
alias gss "git status -sb"
alias gpo "git pull origin --tags"
alias gc "git checkout"
alias reload "source ~/.config/fish/config.fish"
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showuntrackedfiles 'yes'
set __fish_git_prompt_color_branch green
set __fish_git_prompt_char_dirtystate '!'
set __fish_git_prompt_char_untrackedfiles '?'
set __fish_git_prompt_char_stateseparator ''
function fish_prompt
set last_status $status
set_color normal
echo -n 'in '
set_color yellow
printf '%s ' (basename (prompt_pwd))
set_color normal
printf '%s' (__fish_git_prompt 'on %s ')
if test -e .ruby-version
set_color normal
echo -n 'using '
set_color cyan
printf '%s ' (rbenv version-name)
end
set_color normal
echo -n '$ '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment