Created
October 21, 2015 15:18
-
-
Save edcrypt/59be70f8537bc18617a6 to your computer and use it in GitHub Desktop.
This file contains 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 Based\ on\ \'Simple\ Pythonista\',\ displays\ GIT\ and\ Job\ count\ info\ as\ well. | |
set_color yellow | |
printf '%s' (whoami) | |
set_color normal | |
printf ' at ' | |
set_color magenta | |
printf '%s' (hostname|cut -d . -f 1) | |
set_color normal | |
printf ' in ' | |
set_color $fish_color_cwd | |
printf '%s' (prompt_pwd) | |
set_color normal | |
set -g __fish_git_prompt_show_informative_status 1 | |
__fish_git_prompt | |
set jobs_count (count (jobs -p)) | |
echo -n -s " j:" $jobs_count | |
# Line 2 | |
echo | |
if test $VIRTUAL_ENV | |
printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal) | |
end | |
printf '↪ ' | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Todo: choose a color for jobs count.