Commit graph

4 commits

Author SHA1 Message Date
2882bf085e [zsh] Two enhancements to update-date
Reverse the candidates array (the list of positional arguments after options)
with the --prepend (or -p) option so that directories are prepended to the path
variable in the correct precedence.

Add a "force" option as -f or --force that will skip checking if a directory
exists and add the path even if it doesn't. As part of this change, add the
check that the directory exists.
2024-09-26 16:38:30 -07:00
80e2915b89 [zsh] Add -P argument to update-path, allowing updating named path-like variable 2024-09-25 18:16:34 -07:00
7378513bba [zsh] update-path: Add -P argument to take a path variable name; add a big usage message 2024-09-24 12:57:56 -07:00
02f5655426 [zsh] Add update-path function to replace append_to_path and prepend_to_path 2024-09-23 14:40:51 -07:00