Last active
June 29, 2018 17:30
-
-
Save ToniRib/0d7b516d476353608cf0625a2577c392 to your computer and use it in GitHub Desktop.
Simple Fish Prompt for QA
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 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