1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:49:02 -08:00
rc/sh/cdbusiest

11 lines
181 B
Bash
Executable file

#!/usr/bin/env zsh
# YES_ZSH
cdbusiest() {
dbusiest | read -r c d
[ -z $c ] && return 1
printf "%s\n" "$c $d"
cd $d
}
[ "${SOURCING:-0}" -gt 0 ] || cdbusiest "$@"