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)
|
printf "~/%s" (basename $cwd)
|
||||||
case "/"
|
case "/"
|
||||||
printf "/%s" (basename $cwd)
|
printf "/%s" (basename $cwd)
|
||||||
|
case "/gnu/store"
|
||||||
|
printf "/gnu/store/%s" (basename $cwd)
|
||||||
case "*"
|
case "*"
|
||||||
printf "%s/%s" (basename $parent_dir) (basename $cwd)
|
printf "%s/%s" (basename $parent_dir) (basename $cwd)
|
||||||
end
|
end
|
||||||
|
@ -38,7 +40,7 @@ end
|
||||||
|
|
||||||
# Guix environment prompt
|
# Guix environment prompt
|
||||||
function fish_environment_prompt
|
function fish_environment_prompt
|
||||||
normal "(env "; blue "%s" (basename $GUIX_ENVIRONMENT); normal ")"
|
normal "(env "; blue "%s" $GUIX_ENVIRONMENT; normal ")"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Actual prompt
|
# Actual prompt
|
||||||
|
|
Loading…
Reference in New Issue