Created
November 18, 2021 21:48
-
-
Save hobroker/efccbb23331608bcdc27254f716a1bf4 to your computer and use it in GitHub Desktop.
go-to fish prompt
This file contains hidden or 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' | |
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