Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

chflags completion



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