Skip to content

Instantly share code, notes, and snippets.

@scturtle
Last active December 16, 2015 11:48
Show Gist options
  • Save scturtle/5429622 to your computer and use it in GitHub Desktop.
Save scturtle/5429622 to your computer and use it in GitHub Desktop.
powerline prompt for fishfish (with patched font)
set DARKGREEN 2b6003
set LIGHTGREEN b7da2d
set DARKBLUE 2f6f93
set LIGHTBLUE 87d6fc
set SPARATOR \u2b80
set SPARATOR_THIN \u2b81
function fish_prompt
# first line
set_color -o $DARKGREEN -b $LIGHTGREEN
printf (pwd | awk '{sub("'$HOME'"," ~"); gsub("/", " / "); print $0}' | tr -s '/' $SPARATOR_THIN)
set_color $LIGHTGREEN -b normal
printf $SPARATOR
echo
# second line
set_color -o $LIGHTBLUE -b $DARKBLUE
printf ' $ '
set_color $DARKBLUE -b normal
printf $SPARATOR
set_color normal
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment