check if direnv exists in fish's prompt (fix error message when it is not available)
This commit is contained in:
parent
ced32e7c2a
commit
5c853a35ae
1 changed files with 3 additions and 1 deletions
4
fish.nix
4
fish.nix
|
|
@ -67,7 +67,9 @@
|
||||||
set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
|
set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
|
||||||
|
|
||||||
# direnv status
|
# direnv status
|
||||||
set -l direnv_status (direnv status | grep -q "Found RC path" && echo " direnv")
|
if which direnv >/dev/null
|
||||||
|
set -l direnv_status (direnv status | grep -q "Found RC path" && echo " direnv")
|
||||||
|
end
|
||||||
|
|
||||||
# echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
# echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
||||||
echo -n -s (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
echo -n -s (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue