Last active
January 24, 2019 15:54
-
-
Save addicteduser/f6721b5ba24bc36e040f65891a396903 to your computer and use it in GitHub Desktop.
My preferred custom fish shell prompt
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 | |
printf '%s' (set_color normal) '[' (set_color --bold brgreen) "$USER@$hostname " (set_color normal; set_color green) (echo $PWD | sed -e "s|^$HOME|~|") (set_color normal) ']$ ' | |
end | |
Looks like: | |
[USER@HOSTNAME ~/My/current/directory]$ _ | |
where - USER@HOSTNAME has a bright green, boldface format | |
- ~/My/current/directory has a normal green format | |
- the rest are normal white |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment