mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
fish: move fish_greeting to sep function, set $EDITOR only when vim is found
This commit is contained in:
parent
7bea68f38a
commit
2b86db67c3
2 changed files with 11 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
5
config/fish/functions/fish_greeting.fish
Normal file
5
config/fish/functions/fish_greeting.fish
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function fish_greeting
|
||||
if type -q todo.sh
|
||||
TODOTXT_VERBOSE=0 todo.sh listpri a
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue