Date: Sat, 03 Jan 2015 21:24:35 +0100 From: =?UTF-8?Q?Michael_Gr=c3=bcnewald?= <michipili@gmail.com> To: questions@freebsd.org Subject: TCSH completion patterns and the pkg command Message-ID: <54A85003.3000301@gmail.com>
next in thread | raw e-mail | index | archive | help
The C-shell included in the base system is a popular(?) interactive
shell among FreeBSD users. It features a useful completion mechanism
which works very well for commands using a classical(?) UNIX syntax:
command -a argA -b argB --longopt longarg item1 item2 …
Some popular software package such as git or subversion use a small
variation of this UNIX syntax which, to the best of my knowledge,
defeats the C-shell:
command subcommand -a argA -b argB --longopt longarg item1 item2 …
Today, there is several important commands in FreeBSD using such
a scheme, such as pkg, pw or gpart.
Do we have any plans to enhance the C-shell completion features to
deal nicely with this scheme?
An easy workaround is to define an alias for each subcommand, I use
this strategy in my tcshfiles:
https://github.com/michipili/tcshfiles/commit/9caf67c
It would however be nicer to have a more capable completion system
in the C-shell.
--
Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54A85003.3000301>
