mirror of https://codeberg.org/anemofilia/zero
radio: files: fish: Change fish_prompt function
parent
07e6ec5e97
commit
f3cb25f9bd
|
@ -30,6 +30,8 @@ function fish_cwd_prompt
|
|||
printf "~/%s" (basename $cwd)
|
||||
case "/"
|
||||
printf "/%s" (basename $cwd)
|
||||
case "/gnu/store"
|
||||
printf "/gnu/store/%s" (basename $cwd)
|
||||
case "*"
|
||||
printf "%s/%s" (basename $parent_dir) (basename $cwd)
|
||||
end
|
||||
|
@ -38,7 +40,7 @@ end
|
|||
|
||||
# Guix environment prompt
|
||||
function fish_environment_prompt
|
||||
normal "(env "; blue "%s" (basename $GUIX_ENVIRONMENT); normal ")"
|
||||
normal "(env "; blue "%s" $GUIX_ENVIRONMENT; normal ")"
|
||||
end
|
||||
|
||||
# Actual prompt
|
||||
|
|
Loading…
Reference in New Issue