Tagged Questions
3
votes
4answers
374 views
List all files / binaries in current PATH
Is there an "easy" way of running an "ls -la" style command for listing all files / executable binaries in the current PATH?
(I intend to pipe the output into grep, for looking for commands with ...
4
votes
2answers
165 views
Inhibit Variable Expansion in Paths
How do I prevent Zshell (and Bash I assume) from expanding environment variables in paths be completed as shown in the following example:
$PREFIX/alt/li
should expand to
$PREFIX/alt/lib
and not ...
4
votes
4answers
1k views
How does Bash path completion work with sudo?
Tab path completion does not work (at least on Ubuntu and AFAIK Arch) with
sudo mount <whatever>
The iso file I am trying to mount is not in /etc/fstab. If I just type
mount <whatever>
...
5
votes
1answer
200 views
zsh - fully expand binary path on <tab>
In my current zsh behaviour, hitting tab after typing "sudo" just adds a space.
$ sudo ...
What I really want is for the tab to fully expand to the path of the binary it is about to execute when I ...