antonmedv / walk

Terminal file manager
MIT License
3.24k stars 88 forks source link

Exit with pushd #38

Closed mike-ward closed 1 year ago

mike-ward commented 1 year ago

Feature request:

Add a key binding (Ctrl+X) to exit with pushd.

antonmedv commented 1 year ago

What is pushd?

mike-ward commented 1 year ago

pushd to is like cd except it remembers the folder you changed from. Type popd to return to previous folder

antonmedv commented 1 year ago

You can do it simply by changing cd to pushd:

function ll {
  pushd "$(llama "$@")"
}