Merge pull request #1129 from adawalli/percol

Fixes: 659ecd0388 plugins: percol: Check for alias zz before unalias
pull/1134/head
Nils Winkler 2018-01-11 08:12:00 +01:00 committed by GitHub
commit 33f6a022f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ if command -v percol>/dev/null; then
bind -x '"\C-r": _replace_by_history'
# bind zz to percol if fasd enable
unalias zz
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)