fish: add navi widget, add which alias
This commit is contained in:
parent
8a1bd822f8
commit
bc20f8f7d4
@ -33,6 +33,7 @@ mdbook
|
|||||||
micro
|
micro
|
||||||
mitmproxy
|
mitmproxy
|
||||||
most
|
most
|
||||||
|
navi
|
||||||
nginx
|
nginx
|
||||||
nim
|
nim
|
||||||
protobuf
|
protobuf
|
||||||
|
@ -8,7 +8,6 @@ set fish_prompt_pwd_dir_length 0
|
|||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
set -gx LANG en_US.UTF-8
|
set -gx LANG en_US.UTF-8
|
||||||
set -gx SBT_OPTS '-Dsbt.supershell=false'
|
set -gx SBT_OPTS '-Dsbt.supershell=false'
|
||||||
set -gx ENHANCD_DISABLE_DOT 1
|
|
||||||
|
|
||||||
if test -x /usr/libexec/java_home
|
if test -x /usr/libexec/java_home
|
||||||
set -gx JAVA_HOME (/usr/libexec/java_home -v 1.8)
|
set -gx JAVA_HOME (/usr/libexec/java_home -v 1.8)
|
||||||
@ -21,7 +20,7 @@ set -gx FZF_CTRL_T_COMMAND "fd --type=file --follow"
|
|||||||
set -gx FZF_CTRL_T_OPTS "--ansi --preview 'bat --color=always {}'"
|
set -gx FZF_CTRL_T_OPTS "--ansi --preview 'bat --color=always {}'"
|
||||||
set -gx FZF_CTRL_R_OPTS "--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
|
set -gx FZF_CTRL_R_OPTS "--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||||
set -gx FZF_ALT_C_COMMAND "fd --type=directory --follow"
|
set -gx FZF_ALT_C_COMMAND "fd --type=directory --follow"
|
||||||
set -gx FZF_ALT_C_OPTS "--preview 'tree -C {} | head -200'"
|
set -gx FZF_ALT_C_OPTS "--preview 'tree -CL 1 {}'"
|
||||||
|
|
||||||
# Git prompt
|
# Git prompt
|
||||||
set -g __fish_git_prompt_showdirtystate 1
|
set -g __fish_git_prompt_showdirtystate 1
|
||||||
@ -42,6 +41,7 @@ set -g __fish_git_prompt_color_upstream yellow
|
|||||||
# Aliases
|
# Aliases
|
||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
|
alias which='command -s'
|
||||||
function ..; cd ..; end
|
function ..; cd ..; end
|
||||||
function ...; cd ../..; end
|
function ...; cd ../..; end
|
||||||
function ....; cd ../../..; end
|
function ....; cd ../../..; end
|
||||||
@ -72,3 +72,8 @@ end
|
|||||||
if test -x /home/linuxbrew/.linuxbrew/bin/brew
|
if test -x /home/linuxbrew/.linuxbrew/bin/brew
|
||||||
eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Cheatsheet widget (Ctrl+G)
|
||||||
|
if command -sq navi
|
||||||
|
navi widget fish | source
|
||||||
|
end
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
b4b4r07/enhancd
|
|
||||||
oh-my-fish/plugin-foreign-env
|
oh-my-fish/plugin-foreign-env
|
||||||
oh-my-fish/plugin-license
|
oh-my-fish/plugin-license
|
||||||
oh-my-fish/plugin-sublime
|
oh-my-fish/plugin-sublime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user