Skip to content

Instantly share code, notes, and snippets.

@maddo
Created April 29, 2013 15:13
Show Gist options
  • Select an option

  • Save maddo/5482240 to your computer and use it in GitHub Desktop.

Select an option

Save maddo/5482240 to your computer and use it in GitHub Desktop.
function fish_prompt --description 'Write out the prompt'
set branch (git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/')
set_color $fish_color_cwd
echo -n (basename $PWD)
set_color yellow
echo -n $branch
set_color normal
echo -n ' ) '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment