i use arch btw
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

change is_vim condition to also check process name when using sudo

+10
+8
bin/bin/is_vim
··· 1 + #!/usr/bin/env fish 2 + 3 + set tty (echo "$argv[1]" | cut -d/ -f3-) 4 + 5 + for pid in (pgrep -t $tty) 6 + set exe (readlink /proc/$pid/exe 2>/dev/null || cat /proc/$pid/cmdline | tr '\0' '\n' | grep -E '^[^-]' | sed -n '2p') 7 + echo (ps -o state= -p $pid) $exe 8 + end | grep -iqE '^[^TXZ ] +(.*/)?(view|n?vim?x?)(-wrapped)?(diff)?$'
+2
tmux/.config/tmux/tmux.conf
··· 103 103 # disable nord status bar 104 104 set -g @nord_tmux_show_status_content '0' 105 105 106 + set -g @tmux-nvim-condition "is_vim '#{pane_tty}'" 107 + 106 108 set -g @tmux-nvim-navigation true 107 109 set -g @tmux-nvim-navigation-cycle true 108 110 set -g @tmux-nvim-navigation-keybinding-left 'M-h'