feat: alias j limited to cur filesystem
This commit is contained in:
parent
06ae4d4477
commit
94f6ab53e0
@ -28,7 +28,7 @@ alias watch='coloralias watch -c -- '
|
|||||||
alias xargs='xargs '
|
alias xargs='xargs '
|
||||||
|
|
||||||
function j() {
|
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}"
|
local dest="${dests:-$1}"
|
||||||
|
|
||||||
[ -n "${dests[2]}" ] && dest="$(printf '%s\n' "${dests[@]}" | fzf)"
|
[ -n "${dests[2]}" ] && dest="$(printf '%s\n' "${dests[@]}" | fzf)"
|
||||||
|
Loading…
Reference in New Issue
Block a user