Last active
April 3, 2019 10:49
-
-
Save koesherbacon/bed3d8eac49da2d588f0ce4881c60c40 to your computer and use it in GitHub Desktop.
My most recent and current Fish prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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