1
Fork 0
satellite/home/features/cli/fish/config.fish

34 lines
965 B
Fish
Raw Normal View History

2023-02-10 00:11:54 +01:00
# {{{ Start tmux if not already inside tmux
if status is-interactive
and not set -q TMUX
and not set -q NO_TMUX
2023-05-28 05:24:36 +02:00
and set -q ALWAYS_TMUX
2023-02-10 00:11:54 +01:00
exec tmux attach -t Welcome || tmux || echo "Something went wrong trying to start tmux"
end
# }}}
# {{{ Sets cursor based on vim mode
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
# Force fish to skip some checks (I think?)
# TODO: research why this is here
set fish_vi_force_cursor
# }}}
# {{{ Disable greeting
set fish_greeting
# }}}
# {{{ Keybinds
2023-02-10 00:11:54 +01:00
function fish_user_key_bindings
fish_vi_key_bindings
2024-02-09 20:15:32 +01:00
fish_nix_key_bindings
2023-02-10 00:11:54 +01:00
bind -M insert -m default -k f10 'commandline -f repaint' # Exit insert mode with <f10>
end
# }}}
2023-11-27 00:15:03 +01:00
# {{{ Helpers
function take -d "Create a directory and cd into it"
mkdir $argv; and cd $argv
end
# }}}