Hacker News new | ask | show | jobs
by shabble 4784 days ago
One thing I don't see mentioned nearly enough is, if you're using extended globs, it's possible to tab-complete virtually all of it, which doubles as a handy reference.

For example:

    setopt extglob
    cd *(<tab>
    ~~ massive spam of possible glob qualifiers ~~
and it works for variable expansion modifiers as well:

    print ${(<tab>
    ~~ completion candidates for parameter flags ~~
    print ${<tab>
    ~~ complete any currently set variable in the current env~~
Another thing I like is the array types for things like $PATH that are historically colon-separated, typically lower-case versions of the var name for the interesting 'magic' ones.

    vared path
vs

    vared PATH
to see the difference.

    print -l $path # much easier to read