Update fish config.

This commit is contained in:
Shawn Anderson 2022-10-28 11:45:50 -07:00
parent 5499b12fec
commit 9701151655
3 changed files with 20 additions and 11 deletions

View File

@ -10,3 +10,5 @@ source ~/.config/fish/config/abbr.fish
source ~/.config/fish/config/keys.fish
source ~/.config/fish/config/plugins.fish
source ~/.config/fish/config/programs.fish
set -gx GOPATH $HOME/go; set -gx GOROOT $HOME/.go; set -gx PATH $GOPATH/bin $PATH; # g-install: do NOT edit, see https://github.com/stefanmaric/g

View File

@ -9,5 +9,18 @@ abbr gs git status
abbr pd prevd
# Programs
#abbr vim nvim
#abbr cat bat
# Neovim
if type nvim &> /dev/null
abbr vim nvim
end
# Batcat
if type batcat &> /dev/null
abbr cat batcat
end
# Ripgrep
if type rg &> /dev/null
abbr grep rg
end

View File

@ -29,9 +29,9 @@ if type d &> /dev/null
end
# Ctrl-o for preview file using bat
if type bat &> /dev/null
set FZF_PREVIEW_FILE_CMD "bat"
set FZF_CTRL_O_COMMAND "bat ~/.local/share/autojump/autojump.txt | sort -nr | fzf-tmux +s | awk -F '\t' '{printf \$2}'"
if type batcat &> /dev/null
set FZF_PREVIEW_FILE_CMD "batcat"
set FZF_CTRL_O_COMMAND "batcat ~/.local/share/autojump/autojump.txt | sort -nr | fzf-tmux +s | awk -F '\t' '{printf \$2}'"
bind \co eval $FZF_CTRL_O_COMMAND
end
@ -42,9 +42,3 @@ end
# Alt-c for directory history using blsd
command -v blsd > /dev/null && export FZF_ALT_C_COMMAND='blsd'
#-------------------------------------------------------------------------------
# GO
set -gx GOPATH $HOME/go; set -gx GOROOT $HOME/.go; set -gx PATH $GOPATH/bin $PATH; # g-install: do NOT edit, see https://github.com/stefanmaric/g