This commit will help the user to easily update their existing gist
using zsh auto-completion rather than going to github and then
extracting the required gist hash/URL
Note: This commit effects the working of file: `src/_gist`
Previously, `mix run <tab>` would not expand into anything, even though the [`mix run`](https://hexdocs.pm/mix/Mix.Tasks.Run.html) task accepts filenames as inputs. This commit collapses the growing list of such cases (`test`, `format`, `run`) into one clause that autocompletes files.
Although `mix run` accepts several different `--flags`, the autocompletion isn't currently set up to deal with subcommands' specific options, so I'm punting on that part.
For paths such as `/dev/disk/by-id/usb-JetFlash_Transcend_64GB_15AFGA849642-0:0`, `_describe` parses the colon as field separator. This results in wrong completions and the general feeling that udisksctl is broken because it won't mount my pendrive.
Since the output of `udisksctl complete` is (apparently) just a list of paths, it's safe to escape all colons with a backslash.
Now listed in the same order as the builtin help (CMake 3.19),
for easier audit in the feature.
Commands and descriptions updated.
Support for listing presets.
Use this command to create output for comparison
(not 100% exact obviously):
cmake --help |
sed -n "s,^ *\(--*[^= ]*\).* = *\([^=]*\), '\1[\2]',p" |
sed 's,\.],],'
pg_config isn't installed by default on many systems, and is usually
part of postgresql-libs-devel or some such, leading to needless
"pg_config not found" errors on completion.
The ~/.psqlrc may alter the output. In particular, I have '\timing on'
in there to add timings. This is useful when using psql, but not when
relying on it in scripts.
For example:
psql -Aqt -c "select n.nspname \
from pg_catalog.pg_namespace n \
where n.nspname "'!~'" '^pg_' \
and n.nspname <> 'information_schema' \
order by 1;" postgres 2>/dev/null
Gives the output:
public
Time: 1.882 ms
Whereas with -X it gives the standard output:
public