1
1
Fork 0

fish: Slight improvement of prompt

This commit is contained in:
Jonathan Schleifer 2020-02-02 21:18:19 +00:00
parent 145a538295
commit 12d321571a
2 changed files with 9 additions and 9 deletions

View file

@ -1,16 +1,15 @@
function fish_right_prompt
set -l code $status
set -l jobs (jobs | wc -l)
set -l prompt
if test $jobs -gt 0
set_color $fish_color_jobs
echo "$jobs "
end
test $jobs -gt 0
and set -a prompt (set_color $fish_color_jobs)$jobs
if test $code -gt 0
set_color $fish_color_error
echo "$code "
end
test $code -gt 0
and set -a prompt (set_color $fish_color_error)$code
echo $prompt
set_color normal
end

View file

@ -3,7 +3,8 @@ function make
if which bmake >/dev/null ^&1 && \
string match -q -r '/pkgsrc$|/pkgsrc/' $PWD
# pkgsrc does not like MAKEFLAGS including -j
env MAKEFLAGS= bmake $argv
set -lx MAKEFLAGS
command bmake $argv
else
command make $argv
end