fzf tweaking
This commit is contained in:
parent
8f1ecdbfee
commit
988fe8e5d0
1 changed files with 7 additions and 1 deletions
8
.zshrc
8
.zshrc
|
@ -217,7 +217,7 @@ redraw-prompt() {
|
||||||
zle -N redraw-prompt
|
zle -N redraw-prompt
|
||||||
|
|
||||||
_jump() {
|
_jump() {
|
||||||
dir="$(fasd -Rdl | fzf -1 -0 --no-sort +m --height 10)" && cd_func "${dir}"
|
dir="$(fasd -Rdlt | fzf --tiebreak=end -1 -0 --no-sort +m --height 10)" && cd_func "${dir}"
|
||||||
zle && zle redraw-prompt
|
zle && zle redraw-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@ e ()
|
||||||
## fzf
|
## fzf
|
||||||
export FZF_TMUX=1
|
export FZF_TMUX=1
|
||||||
export FZF_COMPLETION_TRIGGER=";"
|
export FZF_COMPLETION_TRIGGER=";"
|
||||||
|
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
|
||||||
. /usr/share/fzf/completion.zsh
|
. /usr/share/fzf/completion.zsh
|
||||||
. /usr/share/fzf/key-bindings.zsh
|
. /usr/share/fzf/key-bindings.zsh
|
||||||
|
|
||||||
|
@ -247,6 +248,7 @@ command -v kubectl >/dev/null 2>&1 && source <(kubectl completion zsh)
|
||||||
command -v kops >/dev/null 2>&1 && source <(kops completion zsh)
|
command -v kops >/dev/null 2>&1 && source <(kops completion zsh)
|
||||||
command -v helm >/dev/null 2>&1 && source <(helm completion zsh)
|
command -v helm >/dev/null 2>&1 && source <(helm completion zsh)
|
||||||
command -v ark >/dev/null 2>&1 && source <(ark completion zsh)
|
command -v ark >/dev/null 2>&1 && source <(ark completion zsh)
|
||||||
|
command -v stern >/dev/null 2>&1 && source <(stern --completion zsh)
|
||||||
|
|
||||||
[ -f /usr/share/bash-completion/completions/aws ] && source /usr/share/bash-completion/completions/aws
|
[ -f /usr/share/bash-completion/completions/aws ] && source /usr/share/bash-completion/completions/aws
|
||||||
[ -f /opt/google-cloud-sdk/completion.zsh.inc ] && source /opt/google-cloud-sdk/completion.zsh.inc
|
[ -f /opt/google-cloud-sdk/completion.zsh.inc ] && source /opt/google-cloud-sdk/completion.zsh.inc
|
||||||
|
@ -277,6 +279,10 @@ export PATH="$HOME/plastic/client:$PATH"
|
||||||
|
|
||||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||||
|
|
||||||
|
## Bazel
|
||||||
|
|
||||||
|
export BAZEL_PYTHON=python2
|
||||||
|
|
||||||
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue