Closed danisvaliev001 closed 2 weeks ago
<!DOCTYPE html> Put the next function into the .bashrc or a similar config: Bash/Zsh |
Fish | PowerShell |
---|---|---|
function lk { cd "$(walk "$@")" } | function lk set loc (walk $argv); and cd $loc; end | function lk() { cd $(walk $args) } |
Now use lk
command to start walking.
Exit with cd by pressing esc/q doesn't work in macOS, zsh. Hotkeys behavior almost same as ctrl-c – esc/q prints absolute path of last dir before quit.