Use path basename instead of basename

This is faster and guaranteed to be available
This commit is contained in:
Fabian Boehm
2023-01-25 20:04:57 +01:00
parent 7b8684e469
commit 7d7b72f995
7 changed files with 7 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ function fish_prompt
# Line 2
echo
if test -n "$VIRTUAL_ENV"
printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal)
printf "(%s) " (set_color blue)(path basename $VIRTUAL_ENV)(set_color normal)
end
printf '↪ '
set_color normal