From 2178cfba239af2440d9bd1a75f55a75c8e9b71c1 Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Thu, 4 Apr 2019 20:13:15 -0400 Subject: [PATCH] remove dup function definition --- files/.zshrc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/files/.zshrc b/files/.zshrc index 3ec27a4..21fcff0 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -89,20 +89,3 @@ source $ZSH/oh-my-zsh.sh # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" - -# Remove duplicate when using Ctrl+R -# https://github.com/junegunn/fzf/issues/626 -__fzf_history__() ( - local line - shopt -u nocaseglob nocasematch - line=$( - HISTTIMEFORMAT= history | tac | sort --key=2.1 -bus | sort -n | - FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" $(__fzfcmd) | - command grep '^ *[0-9]') && - if [[ $- =~ H ]]; then - sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line" - else - sed 's/^ *\([0-9]*\)\** *//' <<< "$line" - fi -) -