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 function fish_right_prompt
set -l code $status set -l code $status
set -l jobs (jobs | wc -l) set -l jobs (jobs | wc -l)
set -l prompt
if test $jobs -gt 0 test $jobs -gt 0
set_color $fish_color_jobs and set -a prompt (set_color $fish_color_jobs)$jobs
echo "$jobs "
end
if test $code -gt 0 test $code -gt 0
set_color $fish_color_error and set -a prompt (set_color $fish_color_error)$code
echo "$code "
end echo $prompt
set_color normal set_color normal
end end

View file

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