Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
chflags completion
- X-seq: zsh-users 12793
- From: William Scott <wgscott@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: chflags completion
- Date: Sat, 19 Apr 2008 10:29:04 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I have a slight modification request for the _chflags completion in
the BSD grouping.
Add the last two lines for hidden/nohidden at about line 32:
if [[ $OSTYPE = (freebsd|dragonfly|darwin)* ]]; then
flags=( $flags[@]
'(nouunlnk)uunlnk[set the user undeletable flag]'
'(uunlnk)nouunlnk[unset the user undeletable flag]'
'(nohidden)hidden[set the hidden flag]'
'(hidden)nohidden[unset the hidden flag]'
)
chflags nohidden /usr
for example, makes the /usr directory visible in Apple's file-
browser. (They hide the unix-like directories by default.)
HTH,
Bill
Messages sorted by:
Reverse Date,
Date,
Thread,
Author