Skip to content

Instantly share code, notes, and snippets.

@addicteduser
Last active January 24, 2019 15:54
Show Gist options
  • Save addicteduser/f6721b5ba24bc36e040f65891a396903 to your computer and use it in GitHub Desktop.
Save addicteduser/f6721b5ba24bc36e040f65891a396903 to your computer and use it in GitHub Desktop.
My preferred custom fish shell prompt
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