1
Fork 0
satellite/dotfiles/fish/config.fish

29 lines
874 B
Fish
Raw Normal View History

if status is-interactive
and not set -q TMUX
2022-12-09 02:32:25 +01:00
exec tmux attach -t Welcome || tmux || echo "Something went wrong trying to start tmux"
end
2022-03-09 01:15:44 +01:00
set fish_cursor_default block # Set the normal and visual mode cursors to a block
set fish_cursor_insert line # Set the insert mode cursor to a line
set fish_cursor_replace_one underscore # Set the replace mode cursor to an underscore
2022-03-08 22:26:20 +01:00
2022-03-09 19:03:04 +01:00
# Force fish to skip some checks (I think)
set fish_vi_force_cursor
2022-03-09 01:15:44 +01:00
function fish_user_key_bindings
# Use the vim keybinds
fish_vi_key_bindings
# Use jj to exit insert mode
bind -e -M insert \e # unbinds esc
bind -M insert -m default jk 'commandline -f repaint'
bind -M insert -m default kj 'commandline -f repaint'
2022-03-08 22:26:20 +01:00
end
2022-05-10 14:28:36 +02:00
# direnv hook, aparently
# https://direnv.net/docs/hook.html
direnv hook fish | source
2022-07-27 10:00:25 +02:00
# allow using packages installed by pnpm
fish_add_path $HOME/.PNPM_HOME