fish: move fish_greeting to sep function, set $EDITOR only when vim is found

This commit is contained in:
Olexandr Smirnov 2025-07-23 23:45:53 +03:00
parent 7bea68f38a
commit 2b86db67c3
No known key found for this signature in database
2 changed files with 11 additions and 9 deletions

View file

@ -1,6 +1,3 @@
set -gx EDITOR nvim
set -gx VISUAL nvim
set -g GOPATH $HOME/go
set -g GOBIN $GOPATH/bin
@ -10,18 +7,18 @@ set -g PATH $HOME/.local/bin $PATH
set -g PATH node_modules/.bin $PATH
set -g PATH .bin $PATH
if type -q nvim
set -gx EDITOR nvim
set -gx VISUAL nvim
end
if status is-interactive
starship init fish | source
zoxide init fish | source
mise activate fish | source
direnv hook fish | source
function fish_greeting
if type -q todo.sh
TODOTXT_VERBOSE=0 todo.sh listpri a
end
end
function fish_user_key_bindings
fish_vi_key_bindings
end