From a76a9ee437b09b8fe7c47d0288518191ae42952f Mon Sep 17 00:00:00 2001 From: John McBride Date: Fri, 14 Feb 2020 14:03:54 -0700 Subject: [PATCH] Remove fasd zz function from percol plugin Signed-off-by: John McBride --- plugins/available/percol.plugin.bash | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/plugins/available/percol.plugin.bash b/plugins/available/percol.plugin.bash index 66610662..c1fc807c 100644 --- a/plugins/available/percol.plugin.bash +++ b/plugins/available/percol.plugin.bash @@ -1,5 +1,5 @@ cite about-plugin -about-plugin 'Search&Select history and fasd with percol' +about-plugin 'Search&Select history with percol' # Notice ## You have to upgrade bash to bash 4.x on Mac OS X. @@ -8,11 +8,9 @@ about-plugin 'Search&Select history and fasd with percol' # Install ## (sudo) pip install percol ## bash-it enable percol -## optional: bash-it enable fasd # Usage ## C-r to search&select from history -## zz to search&select from fasd _replace_by_history() { if command -v tac>/dev/null; then @@ -33,17 +31,5 @@ if command -v percol>/dev/null; then echo -e "\033[91m Your current Bash version is $BASH_VERSION.\033[m" else bind -x '"\C-r": _replace_by_history' - - # bind zz to percol if fasd enable - if [[ $(type -t zz) == 'alias' ]]; then - unalias zz - fi - - if command -v fasd>/dev/null; then - function zz() { - local l=$(fasd -d | awk '{print $2}' | percol) - cd $l - } - fi fi fi