Created
April 25, 2017 08:21
-
-
Save technolize/cd0b3680f3f53e6195af894cf878eff8 to your computer and use it in GitHub Desktop.
This file contains 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
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