Created
May 5, 2020 01:59
-
-
Save phantompunk/455bd23ba0fe7a9d32bbe87302215f7c 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 --description 'Write out the prompt' | |
if not set -q __fish_prompt_normal | |
set -g __fish_prompt_normal (set_color magenta) | |
end | |
if not set -q __fish_prompt_cwd | |
set -g __fish_prompt_cwd (set_color blue) | |
end | |
if not set -q __fish_cursor_cwd | |
set -g __fish_cursor_cwd (set_color green) | |
end | |
echo -n -s "$__fish_prompt_cwd" (prompt_pwd) $__fish_prompt_normal (__fish_git_prompt) | |
echo -n -s \n "$__fish_cursor_cwd" '❯ ' | |
end⏎ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment