Fish: only load colors if they are defined

This commit is contained in:
Robert Kmieć
2024-03-03 23:43:43 +01:00
parent d37d2c2493
commit 157d72fe33

View File

@@ -1,6 +1,6 @@
set -x EDITOR nvim
set -x PAGER less
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
#set -x MANPAGER 'sh -c \'col -bx | bat -l man -p\''
set -x fish_prompt_pwd_dir_length 1
set -x fish_greeting ''
set fish_complete_path $fish_complete_path /usr/share/fish/completions
@@ -21,7 +21,9 @@ set -x PATH $PATH /home/kmcr/.codon
#if status is-interactive
# cat ~/.cache/wal/sequences
#end
source ~/.local/share/nvim/lazy/falcon/exa/EXA_COLORS
if test -e ~/.local/share/nvim/lazy/falcon/exa/EXA_COLORS
source ~/.local/share/nvim/lazy/falcon/exa/EXA_COLORS
end
function list_dir --on-variable PWD
ls