all repos

dotfiles @ 2b86db6

i use rach linux btw
2 files changed, 11 insertions(+), 9 deletions(-)
fish: move fish_greeting to sep function, set $EDITOR only when vim is found
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-07-23 23:45:53 +0300
Parent: 7bea68f
M config/fish/config.fish
···
                1
                
                -set -gx EDITOR nvim

              
                2
                
                -set -gx VISUAL nvim

              
                3
                
                -

              
                4
                1
                 set -g GOPATH $HOME/go

              
                5
                2
                 set -g GOBIN $GOPATH/bin

              
                6
                3
                 

              ···
                10
                7
                 set -g PATH node_modules/.bin $PATH

              
                11
                8
                 set -g PATH .bin $PATH

              
                12
                9
                 

              
                
                10
                +

              
                
                11
                +if type -q nvim

              
                
                12
                +  set -gx EDITOR nvim

              
                
                13
                +  set -gx VISUAL nvim

              
                
                14
                +end

              
                
                15
                +

              
                13
                16
                 if status is-interactive

              
                14
                17
                   starship init fish | source

              
                15
                18
                   zoxide init fish | source

              
                16
                19
                   mise activate fish | source

              
                17
                20
                   direnv hook fish | source

              
                18
                
                -

              
                19
                
                -  function fish_greeting

              
                20
                
                -    if type -q todo.sh

              
                21
                
                -      TODOTXT_VERBOSE=0 todo.sh listpri a

              
                22
                
                -    end

              
                23
                
                -  end

              
                24
                21
                 

              
                25
                22
                   function fish_user_key_bindings

              
                26
                23
                     fish_vi_key_bindings

              
A config/fish/functions/fish_greeting.fish
···
                
                1
                +function fish_greeting

              
                
                2
                +  if type -q todo.sh

              
                
                3
                +    TODOTXT_VERBOSE=0 todo.sh listpri a

              
                
                4
                +  end

              
                
                5
                +end