From bfcd68d3b420f9ef3a93b4dde49d3562eea81dbe Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 30 Aug 2022 16:19:01 +0900 Subject: [PATCH] Ignore nobeep argument zsh puts 'nobeep' when sourcing fzf-git.sh file, if `set nobeep` is set. Fix #7 --- fzf-git.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fzf-git.sh b/fzf-git.sh index 02f1588..855d7fb 100644 --- a/fzf-git.sh +++ b/fzf-git.sh @@ -47,6 +47,7 @@ if [[ $# -eq 1 ]]; then echo $'CTRL-O (open in browser) ╱ ALT-E (examine in editor)\n' refs 'cat' ;; + nobeep) ;; *) exit 1 ;; esac elif [[ $# -gt 1 ]]; then