mirror of
https://github.com/notwa/rc
synced 2024-05-18 17:53:23 -07:00
9 lines
180 B
Bash
Executable File
9 lines
180 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# YES_ZSH
|
|
|
|
randir() {
|
|
find -maxdepth 1 -type d \( -path '/root' -prune -o -print \) | tail -n+2 | shuf | head -1
|
|
}
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || randir "$@"
|