Skip to content

Instantly share code, notes, and snippets.

@koesherbacon
Last active April 3, 2019 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koesherbacon/bed3d8eac49da2d588f0ce4881c60c40 to your computer and use it in GitHub Desktop.
Save koesherbacon/bed3d8eac49da2d588f0ce4881c60c40 to your computer and use it in GitHub Desktop.
My most recent and current Fish prompt
#
# This is my newest Fish Prompt
# Created 03-30-19
#
# Here's a preview:
# <TBD>
#
# And here's the code
# this belongs in ~/.config/fish/functions/fish_prompt.fish
function fish_prompt
echo ''
if not set -q VIRTUAL_ENV_DISABLE_PROMPT
set -g VIRTUAL_ENV_DISABLE_PROMPT true
end
# set_color D700FF
# printf '%s' (whoami)
# set_color normal
# printf ' at '
# set_color cyan
# echo -n (prompt_hostname)
# set_color normal
# printf ' in '
set_color normal
echo -n ' ╭──○ '
set_color 0087D7
echo -n '{'
set_color D700FF
printf ' %s' (prompt_pwd)
set_color 0087D7
echo -n ' }'
set_color normal
# Line 2
echo
if test $VIRTUAL_ENV
printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal)
end
printf ' ╰──▷ '
set_color normal
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment