Skip to content

Instantly share code, notes, and snippets.

@phantompunk
Created May 5, 2020 01:59
Show Gist options
  • Save phantompunk/455bd23ba0fe7a9d32bbe87302215f7c to your computer and use it in GitHub Desktop.
Save phantompunk/455bd23ba0fe7a9d32bbe87302215f7c to your computer and use it in GitHub Desktop.
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