Skip to content

Instantly share code, notes, and snippets.

@ToniRib
Last active June 29, 2018 17:30
Show Gist options
  • Save ToniRib/0d7b516d476353608cf0625a2577c392 to your computer and use it in GitHub Desktop.
Save ToniRib/0d7b516d476353608cf0625a2577c392 to your computer and use it in GitHub Desktop.
Simple Fish Prompt for QA
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set_color e22265
printf (date "+%I:%M:%S%p ")
set_color normal
set_color -o f18f1b
echo -n (basename $PWD)
set_color normal
echo -n ' '
__informative_git_prompt
if not test $last_status -eq 0
set_color $fish_color_error
end
echo ' '
set_color -o yellow
echo -n ' ➾ '
set_color normal
end
function fish_right_prompt -d "Right side fish prompt"
set_color ffbf00
echo -n (~/.rvm/bin/rvm-prompt)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment