antonmedv / walk

Terminal file manager
MIT License
3.17k stars 89 forks source link

Exit with cd doesn't work #153

Closed danisvaliev001 closed 2 weeks ago

danisvaliev001 commented 2 weeks ago

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.

antonmedv commented 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.