dotfiles/fish.configlink/config.fish

52 lines
1.2 KiB
Fish
Raw Normal View History

2020-07-26 20:15:21 +00: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 PATH $PATH /usr/local/bin ~/.local/bin $DOTS/bin ~/.cargo/bin
set CDPATH . $HOME
2020-11-24 02:30:24 +00:00
set EDITOR nvim
2020-07-26 20:15:21 +00:00
2020-07-27 01:06:49 +00:00
# Use `vi` in the shell with cursor shapes
2020-07-26 20:15:21 +00:00
fish_vi_key_bindings
2020-11-23 04:15:08 +00: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 21:31:31 +00: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 20:15:21 +00:00
fish_vi_cursor
# Turn off greeting
set fish_greeting ""
# Autojump
2020-08-02 00:06:16 +00:00
zoxide init fish | source
2020-07-26 20:15:21 +00:00
# Colors
theme_gruvbox
# Individual features
2020-07-31 01:12:17 +00:00
aliases
2020-07-27 17:00:26 +00:00
notes
2020-11-15 01:56:48 +00:00
awstools
2020-07-31 01:12:17 +00:00
mactools
2020-11-24 03:34:14 +00:00
gittools
2020-08-02 00:06:16 +00:00
projects
2020-07-31 01:12:17 +00:00
# Fuzzy finder
fzf_key_bindings
2020-11-25 22:56:17 +00:00
set -g FZF_DEFAULT_COMMAND 'fd --type file'
set -g FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
2020-07-31 13:28:30 +00:00
set -g FZF_DEFAULT_OPTS '-m --height 50% --border'
2020-07-26 20:15:21 +00:00
# Use `starship` prompt
starship init fish | source
end
2020-07-25 19:32:16 +00:00