From 988fe8e5d06ae425a9de58a33db8a0c1832f4a97 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Tue, 4 Jun 2019 09:49:54 +0200 Subject: [PATCH] fzf tweaking --- .zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index f74f558..cd396c0 100644 --- a/.zshrc +++ b/.zshrc @@ -217,7 +217,7 @@ redraw-prompt() { zle -N redraw-prompt _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 } @@ -239,6 +239,7 @@ e () ## fzf export FZF_TMUX=1 export FZF_COMPLETION_TRIGGER=";" +export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' . /usr/share/fzf/completion.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 helm >/dev/null 2>&1 && source <(helm 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 /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" +## Bazel + +export BAZEL_PYTHON=python2 + [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh