radio: files: fish: Change fish_prompt function

impermanence
Luis Guilherme Coelho 2024-07-05 22:23:02 -03:00
parent 07e6ec5e97
commit f3cb25f9bd
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 3 additions and 1 deletions

View File

@ -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