3 ms·
You could also make use of temporary variables. $ a=`pwd` $ cd /mnt/rockin/it $ b=`pwd` $ cd $a
by delano 18y ago
You could also make use of temporary variables.
$ a=`pwd`
$ cd /mnt/rockin/it
$ b=`pwd`
$ cd $a
- jli 18y agoI just installed it, this is a very good time saver. This is much better than temp variables because it defines "temp variable" automatically for you.
- ivey 18y agoThat's too much like work. EDIT: I currently use cdargs, and it had to get built into muscle memory before it was really powerful. Now, I type "cv twTABENTER" and I'm where I want to be, before I've finished thinking about where I want to be.
- Harkins 18y agoIf you're using bash, the builtin cd -, pushd, and popd are all handier ways of accomplishing this.
- ivey 18y agoNope. That's stack based, this is frequency based. It learns what directories you visit more frequently, and jumps to the right one based on very small bits of input. I wish it were interactive, like iswitchb ... or I guess I could just start using shell-mode inside Emacs.
- Harkins 18y agoYes, autojump is frequency based. That is not what I was responding to.