Skip to content

Instantly share code, notes, and snippets.

@hobroker
Created November 18, 2021 21:48
Show Gist options
  • Save hobroker/efccbb23331608bcdc27254f716a1bf4 to your computer and use it in GitHub Desktop.
Save hobroker/efccbb23331608bcdc27254f716a1bf4 to your computer and use it in GitHub Desktop.
go-to fish prompt
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
__terlar_git_prompt
fish_hg_prompt
echo
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n '❯ '
set_color normal
end
function fish_right_prompt -d "Write out the right prompt"
date +%X
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment