Skip to content

Instantly share code, notes, and snippets.

@Fosome
Created January 9, 2014 18:31
Show Gist options
  • Save Fosome/8339360 to your computer and use it in GitHub Desktop.
Save Fosome/8339360 to your computer and use it in GitHub Desktop.
Fish config
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