Skip to content

Commit

Permalink
Allow completion of dot directories (#6803)
Browse files Browse the repository at this point in the history
Fixes #3775, fixes #6543
  • Loading branch information
mcornella committed May 7, 2018
1 parent 00f311a commit 6bff079
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ else
fi
unset CASE_SENSITIVE HYPHEN_INSENSITIVE

# Complete . and .. special directories
zstyle ':completion:*' special-dirs true

zstyle ':completion:*' list-colors ''
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'

Expand Down

1 comment on commit 6bff079

@aikomastboom
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcornella

[oh-my-zsh] Insecure completion-dependent directories detected:
drwxr-xr-x  3 aiko  admin  102 Feb  7  2015 /usr/local/share/zsh
drwxr-xr-x  9 aiko  admin  306 May 11 21:23 /usr/local/share/zsh/site-functions
lrwxr-xr-x  1 aiko  admin   39 Oct 27  2016 /usr/local/share/zsh/site-functions/_brew -> ../../../Homebrew/completions/zsh/_brew
lrwxr-xr-x  1 aiko  admin   44 Oct 27  2016 /usr/local/share/zsh/site-functions/_brew_cask -> ../../../Homebrew/completions/zsh/_brew_cask
lrwxr-xr-x  1 aiko  admin   63 May 11 21:22 /usr/local/share/zsh/site-functions/_docker -> ../../../Cellar/docker/18.05.0/share/zsh/site-functions/_docker
lrwxr-xr-x  1 aiko  admin   78 May 11 21:23 /usr/local/share/zsh/site-functions/_docker-compose -> ../../../Cellar/docker-compose/1.21.2/share/zsh/site-functions/_docker-compose
lrwxr-xr-x  1 aiko  admin   78 Apr  9 10:00 /usr/local/share/zsh/site-functions/_docker-machine -> ../../../Cellar/docker-machine/0.14.0/share/zsh/site-functions/_docker-machine
lrwxr-xr-x  1 aiko  admin   56 Apr  9 09:58 /usr/local/share/zsh/site-functions/_git -> ../../../Cellar/git/2.17.0/share/zsh/site-functions/_git
[oh-my-zsh] For safety, completions will be disabled until you manually fix all
[oh-my-zsh] insecure directory permissions and ownership and restart oh-my-zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
# fruit @ pro in ~ [14:56:05]
$ ls -latrh /usr/local/Homebrew/completions/zsh/_brew*
-r--r--r--  1 aiko  wheel   5.6K Apr  9 09:56 /usr/local/Homebrew/completions/zsh/_brew_cask
-r--r--r--  1 aiko  wheel    24K May 11 21:21 /usr/local/Homebrew/completions/zsh/_brew

# fruit @ pro in ~ [14:56:14]
$ ls -latrh /usr/local/Cellar/docker/18.05.0/share/zsh/site-functions
total 248
-r--r--r--  1 aiko  admin   122K May 10 00:07 _docker

Please sign in to comment.