Skip to content

Instantly share code, notes, and snippets.

@technolize
Created April 25, 2017 08:21
Show Gist options
  • Save technolize/cd0b3680f3f53e6195af894cf878eff8 to your computer and use it in GitHub Desktop.
Save technolize/cd0b3680f3f53e6195af894cf878eff8 to your computer and use it in GitHub Desktop.
function fish_prompt
set -l pwd_info (pwd_info "/")
echo
set_color yellow
if pwd_is_home
echo -n " ~/"
else
echo -n " /"
end
if test ! -z "$pwd_info[2]"
echo -n "$pwd_info[2]/"
end
if test ! -z "$pwd_info[1]"
echo -n "$pwd_info[1]"
end
echo
set_color normal
echo "% "
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment