zsh-workers
 help / color / mirror / code / Atom feed
* _chflags
@ 2001-08-01 18:39 Akinori MUSHA
  2001-08-02 12:21 ` _chflags Oliver Kiddle
  0 siblings, 1 reply; 8+ messages in thread
From: Akinori MUSHA @ 2001-08-01 18:39 UTC (permalink / raw)
  To: zsh-workers

Hi,

Attached is the compdef for *BSD's chflags(1) command, which changes
special file flags.  Please add it if it's okay.

The manpage is available via the web, by the following URL:

	http://www.FreeBSD.org/cgi/man.cgi?query=chflags&apropos=0&sektion=1&manpath=FreeBSD+4.3-RELEASE&format=html

I didn't add rules for the options becase I couldn't be sure if it's
worth supporting.

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Freeze this moment a little bit longer, make each impression
  a little bit stronger..  Experience slips away -- Time stand still"

#compdef chflags

if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
	local flags

	case $OSTYPE in
	  freebsd*)
		flags=(arch opaque nodump sappnd schg sunlnk uappnd uchg uunlnk)
		compadd $flags ${flags/#/no}
	  ;;
	  netbsd*|openbsd*)	  
		flags=(arch opaque nodump sappnd schg uappnd uchg)
		compadd $flags ${flags/#/no}
	  ;;
	esac
else
	_files
fi


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-08-06 11:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01 18:39 _chflags Akinori MUSHA
2001-08-02 12:21 ` _chflags Oliver Kiddle
2001-08-02 13:25   ` _chflags Akinori MUSHA
2001-08-02 16:19     ` _chflags Oliver Kiddle
2001-08-02 17:40       ` _chflags Akinori MUSHA
2001-08-03 11:46         ` _chflags Oliver Kiddle
2001-08-03  8:25       ` _chflags Sven Wischnowsky
2001-08-06 11:36         ` grouping inverses and sorting in completion lists (was _chflags) Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).