$nameddirs  –  Mapping of named directories to paths

$nameddirs maps names of named directories to the paths.

Examples

Use named directory
1
2
3
4
nameddirs=([app_cache]=/var/lib/cache [app_home]=/usr/local/share)
ls -la ~app_home
# output depends on the current system
  
Output:
1
2
3
drwxr-xr-x  2 root root  3 25. Sep 11:05 .
drwxr-xr-x 11 root root 11 20. Aug 2021  ..
lrwxrwxrwx  1 root root  6 18. Sep 15:18 man -> ../man
BashSupport Pro is a Zsh IDE with support for $nameddirstry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal