dotfiles/.local/bin/scripts/locz
xeruf f334607d4f config/shell: expand zoxide & clean functions
- d/di alias based on zf, locz and zfz
- update clean function
2021-07-25 23:46:46 +02:00

5 lines
182 B
Bash
Executable file

#!/bin/sh
# Locate existing directories in zoxide format
locate --basename --ignore-case "$@" |
while read -r file; do test -d "$file" && echo "$file"; done |
sed 's/^/ 0 /'