Update fish config.
This commit is contained in:
parent
5499b12fec
commit
9701151655
|
|
@ -10,3 +10,5 @@ source ~/.config/fish/config/abbr.fish
|
||||||
source ~/.config/fish/config/keys.fish
|
source ~/.config/fish/config/keys.fish
|
||||||
source ~/.config/fish/config/plugins.fish
|
source ~/.config/fish/config/plugins.fish
|
||||||
source ~/.config/fish/config/programs.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
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,18 @@ abbr gs git status
|
||||||
abbr pd prevd
|
abbr pd prevd
|
||||||
|
|
||||||
# Programs
|
# 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
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,9 @@ if type d &> /dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
# Ctrl-o for preview file using bat
|
# Ctrl-o for preview file using bat
|
||||||
if type bat &> /dev/null
|
if type batcat &> /dev/null
|
||||||
set FZF_PREVIEW_FILE_CMD "bat"
|
set FZF_PREVIEW_FILE_CMD "batcat"
|
||||||
set FZF_CTRL_O_COMMAND "bat ~/.local/share/autojump/autojump.txt | sort -nr | fzf-tmux +s | awk -F '\t' '{printf \$2}'"
|
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
|
bind \co eval $FZF_CTRL_O_COMMAND
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -42,9 +42,3 @@ end
|
||||||
|
|
||||||
# Alt-c for directory history using blsd
|
# Alt-c for directory history using blsd
|
||||||
command -v blsd > /dev/null && export FZF_ALT_C_COMMAND='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
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue