6 lines
182 B
Plaintext
6 lines
182 B
Plaintext
|
#!/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 /'
|