43 lines
1.0 KiB
Fish
Raw Normal View History

2020-07-26 16:15:21 -04:00
#!/usr/local/bin/fish
if status --is-interactive
# Aliases
2020-12-21 19:09:53 -07:00
set PATH $PATH /usr/local/bin ~/.local/bin $DOTS/bin ~/.cargo/bin
if command -v nvim > /dev/null
alias vim='nvim'
abbr -a vimrc 'vim $HOME/.config/nvim/init.vim'
end
if [ (uname) = "Linux" ]
2020-12-21 19:09:53 -07:00
linux
end
2020-07-26 16:15:21 -04:00
2020-07-26 21:06:49 -04:00
# Use `vi` in the shell with cursor shapes
2020-07-26 16:15:21 -04:00
fish_vi_key_bindings
2020-11-22 23:15:08 -05:00
bind yy fish_clipboard_copy
bind Y fish_clipboard_copy
bind -M visual y fish_clipboard_copy
bind p fish_clipboard_paste
2020-07-26 17:31:31 -04:00
set -g fish_vi_force_cursor
set -g fish_cursor_default block
set -g fish_cursor_insert line
set -g fish_cursor_visual block
set -g fish_cursor_replace_one underscore
2020-07-26 16:15:21 -04:00
fish_vi_cursor
# Autojump
2020-08-01 20:06:16 -04:00
zoxide init fish | source
2020-07-26 16:15:21 -04:00
# Colors
2020-12-18 11:23:55 -07:00
theme_gruvbox dark
2020-07-30 21:12:17 -04:00
# Fuzzy finder
fzf_key_bindings
set -gx FZF_DEFAULT_COMMAND 'fd --type file'
2020-11-25 17:56:17 -05:00
set -g FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
2020-07-31 09:28:30 -04:00
set -g FZF_DEFAULT_OPTS '-m --height 50% --border'
2020-07-26 16:15:21 -04:00
# Use `starship` prompt
starship init fish | source
end