Created
January 9, 2014 18:31
-
-
Save Fosome/8339360 to your computer and use it in GitHub Desktop.
Fish config
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
function fish_user_key_bindings | |
bind \[Z forward-char | |
end | |
function fish_prompt | |
set_color ff6600 #orange | |
echo -n (pwd | sed "s!^$HOME!~!") | |
set_color 0066ff #light blue | |
if test -d .git | |
echo -n '' (git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1]/") | |
if [ (git status 2> /dev/null | tail -n1) != 'nothing to commit, working directory clean' ] | |
set_color yellow | |
echo -n "±" | |
end | |
end | |
#don't care | |
#echo -n '' (rbenv versions 2> /dev/null | awk '/^\* / { print "(" $2 ")" } ') | |
set_color white | |
echo | |
echo -n '‡ ' | |
set_color normal | |
end | |
alias be='bundle exec' | |
alias lal='ls -al' | |
alias gs='git status' | |
alias gf='git fetch' | |
alias gco='git checkout' | |
alias gbr='git branch' | |
alias glg='git log' | |
alias gmf='git merge --ff-only' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment