diff options
author | John Purnell <jpcirrus@users.noreply.github.com> | 2019-12-06 00:27:04 +1100 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-12-05 22:27:04 +0900 |
commit | 357e82e51b7929698e453cad3a664530e6c25a9c (patch) | |
tree | 0a44c97735796bb93fe41c4360772ea67e74f1bf /shell | |
parent | 394d8cfd18819281f237f736ce60586df359541d (diff) |
[completion] Ignore hg repos (#1777)
* Update completion.bash
* Update completion.zsh
Diffstat (limited to 'shell')
-rw-r--r-- | shell/completion.bash | 4 | ||||
-rw-r--r-- | shell/completion.zsh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index 466ca059..4ff7b784 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -16,7 +16,7 @@ if ! declare -f _fzf_compgen_path > /dev/null; then _fzf_compgen_path() { echo "$1" command find -L "$1" \ - -name .git -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \ + -name .git -prune -o -name .hg -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \ -a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@' } fi @@ -24,7 +24,7 @@ fi if ! declare -f _fzf_compgen_dir > /dev/null; then _fzf_compgen_dir() { command find -L "$1" \ - -name .git -prune -o -name .svn -prune -o -type d \ + -name .git -prune -o -name .hg -prune -o -name .svn -prune -o -type d \ -a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@' } fi diff --git a/shell/completion.zsh b/shell/completion.zsh index 509f5812..c7be8777 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -16,7 +16,7 @@ if ! declare -f _fzf_compgen_path > /dev/null; then _fzf_compgen_path() { echo "$1" command find -L "$1" \ - -name .git -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \ + -name .git -prune -o -name .hg -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \ -a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@' } fi @@ -24,7 +24,7 @@ fi if ! declare -f _fzf_compgen_dir > /dev/null; then _fzf_compgen_dir() { command find -L "$1" \ - -name .git -prune -o -name .svn -prune -o -type d \ + -name .git -prune -o -name .hg -prune -o -name .svn -prune -o -type d \ -a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@' } fi |