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

Re: command name '-'



On 02/08/2015 12:48 PM, Daniel wrote:
> I have in my ~/bin, which is in PATH, a command named simply '-' [minus]. I
> can't seem to have this one executed. Typing - at the prompt and nothing
> happens. Also, whence or type yiels exactly nothing. What gives?
>
> I like to have + and - commands for changing volume easily in console, over
> ssh, however...
>
- and -- act as end of options for a lot of builtin commands, including
whence. so you want: whence - -

`-' is a precommand modifier that you can read about in zshbuiltins, but
you can disable it using the `disable'  builtin.
Again using: disable - -



Messages sorted by: Reverse Date, Date, Thread, Author