Skip to content

Instantly share code, notes, and snippets.

@dyerw
Created July 8, 2016 22:36
Show Gist options
  • Save dyerw/b9c37645e17f02b2fbca5c4fc30f54ea to your computer and use it in GitHub Desktop.
Save dyerw/b9c37645e17f02b2fbca5c4fc30f54ea to your computer and use it in GitHub Desktop.
function fish_prompt
test $SSH_TTY; and printf (set_color red)(whoami)(set_color white)'@'(set_color yellow)(hostname)' '
test $USER = 'root'; and echo (set_color red)"#"
# Main
echo -n (set_color cyan)(prompt_pwd)(set_color purple)(__fish_vcs_prompt) (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯ '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment