feat: alias j limited to cur filesystem

This commit is contained in:
AngeD 2023-05-22 13:45:52 +02:00
parent 06ae4d4477
commit 94f6ab53e0

View File

@ -28,7 +28,7 @@ alias watch='coloralias watch -c -- '
alias xargs='xargs '
function j() {
local dests=($(find . -maxdepth 5 -type d -path "*/$1" 2> /dev/null))
local dests=($(find . -mount -maxdepth 5 -type d -path "*/$1" 2> /dev/null))
local dest="${dests:-$1}"
[ -n "${dests[2]}" ] && dest="$(printf '%s\n' "${dests[@]}" | fzf)"