Skip to content

Instantly share code, notes, and snippets.

@suin
Created April 11, 2012 14:03
Show Gist options
  • Save suin/2359496 to your computer and use it in GitHub Desktop.
Save suin/2359496 to your computer and use it in GitHub Desktop.
function fish_prompt -d "Write out the prompt"
if [ $status -eq 0 ]
set emoticon "^_^"
set color green
else
set emoticon ">_<"
set color red
end
printf "%s%s %s%s:%s %s" (set_color -o $color) $emoticon (set_color normal) (hostname|cut -d . -f 1) $PWD
echo ""
echo "\$ "
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment