From c7ae295cef9de9277a24214ba3c80895572f6f00 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 11 Jul 2021 21:59:42 +0200 Subject: [PATCH] add fzf-tab --- .gitmodules | 3 +++ zsh/.oh-my-zsh-custom/plugins/fzf-tab | 1 + zsh/.zshrc | 20 +++++++++----------- 3 files changed, 13 insertions(+), 11 deletions(-) create mode 160000 zsh/.oh-my-zsh-custom/plugins/fzf-tab diff --git a/.gitmodules b/.gitmodules index 30a37b7..04e9f97 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "zsh/.oh-my-zsh-custom/themes/powerlever10k"] path = zsh/.oh-my-zsh-custom/themes/powerlevel10k url = https://github.com/romkatv/powerlevel10k.git +[submodule "zsh/.oh-my-zsh-custom/plugins/fzf-tab"] + path = zsh/.oh-my-zsh-custom/plugins/fzf-tab + url = https://github.com/Aloxaf/fzf-tab diff --git a/zsh/.oh-my-zsh-custom/plugins/fzf-tab b/zsh/.oh-my-zsh-custom/plugins/fzf-tab new file mode 160000 index 0000000..bc086fc --- /dev/null +++ b/zsh/.oh-my-zsh-custom/plugins/fzf-tab @@ -0,0 +1 @@ +Subproject commit bc086fc38cfd680a90c694210fa5c5d88e3d1691 diff --git a/zsh/.zshrc b/zsh/.zshrc index ff8ee93..c712b1c 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -4,7 +4,7 @@ zstyle :omz:plugins:ssh-agent agent-forwarding on # - export SSH_KEY_PATH="~/.ssh/rsa_id" +export SSH_KEY_PATH="~/.ssh/rsa_id" #If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH @@ -35,10 +35,10 @@ DISABLE_AUTO_UPDATE="false" # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. - ENABLE_CORRECTION="true" +ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. - COMPLETION_WAITING_DOTS="true" +COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories @@ -57,11 +57,14 @@ ZSH_CUSTOM=$HOME/.oh-my-zsh-custom # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(archlinux common-aliases cp systemd colored-man-pages extract rsync history-substring-search nmap sudo systemadmin wakeonlan git zsh-256color tmux thefuck zsh-syntax-highlighting pip pyenv python docker fzf) - +plugins=(archlinux common-aliases cp systemd colored-man-pages extract rsync history-substring-search nmap sudo systemadmin wakeonlan git zsh-256color tmux thefuck zsh-syntax-highlighting pip pyenv python docker fzf fzf-tab) # User configuration - +# fzf-tab option +zstyle ':completion:*:git-checkout:*' sort false +zstyle ':completion:*:git-diff:*' sort false +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*:descriptions' format '[%d]' # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment @@ -87,7 +90,6 @@ plugins=(archlinux common-aliases cp systemd colored-man-pages extract rsync his # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" - ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache if [[ ! -d $ZSH_CACHE_DIR ]]; then mkdir $ZSH_CACHE_DIR @@ -97,7 +99,3 @@ for file in ~/.zshrc.d/*; do source "$file" done source $ZSH/oh-my-zsh.sh - - - -