Last active
January 8, 2017 13:50
-
-
Save robinclart/300ed1c6ada0d3548faf8943ab68aafa to your computer and use it in GitHub Desktop.
.config/fish/config.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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