2020-07-26 16:15:21 -04:00
|
|
|
#!/usr/local/bin/fish
|
|
|
|
|
|
|
|
if status --is-interactive
|
|
|
|
|
|
|
|
# Set $PATH for finding programs
|
|
|
|
set FISH_DIR (readlink ~/.config/fish)
|
|
|
|
set DOTS (dirname $FISH_DIR)
|
|
|
|
set PROJ (dirname $DOTS)
|
|
|
|
set PATH $PATH /usr/local/bin ~/.local/bin $DOTS/bin ~/.cargo/bin
|
2020-07-31 00:02:41 -04:00
|
|
|
set CDPATH . $HOME $PROJ
|
2020-11-23 21:30:24 -05:00
|
|
|
set EDITOR nvim
|
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
|
|
|
|
|
|
|
|
# Turn off greeting
|
|
|
|
set fish_greeting ""
|
|
|
|
|
|
|
|
# Autojump
|
2020-08-01 20:06:16 -04:00
|
|
|
zoxide init fish | source
|
2020-07-26 16:15:21 -04:00
|
|
|
|
|
|
|
# Colors
|
|
|
|
theme_gruvbox
|
|
|
|
|
|
|
|
# Individual features
|
2020-07-30 21:12:17 -04:00
|
|
|
aliases
|
2020-07-26 16:15:21 -04:00
|
|
|
pyenv
|
2020-07-27 13:00:26 -04:00
|
|
|
notes
|
2020-11-14 20:56:48 -05:00
|
|
|
awstools
|
2020-07-30 21:12:17 -04:00
|
|
|
mactools
|
2020-11-23 22:34:14 -05:00
|
|
|
gittools
|
2020-08-01 20:06:16 -04:00
|
|
|
projects
|
2020-07-30 21:12:17 -04:00
|
|
|
|
|
|
|
# Fuzzy finder
|
|
|
|
fzf_key_bindings
|
2020-07-31 09:28:30 -04:00
|
|
|
set -g FZF_DEFAULT_COMMAND 'rg --files'
|
|
|
|
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
|
2020-07-25 15:32:16 -04:00
|
|
|
|