|
|
|
|
|
by bnegreve
4538 days ago
|
|
Nice. This quick and dirty trick has been in my .bashrc forever and I still use it: function md(){
pwd > /tmp/md_tmp
function gomd(){
cd `cat /tmp/md_tmp`
so `md` marks the current directory and `gomd`go to the marked directory. Unlike bash builtins like pushd and popd, it uses the file system to store the marked directory so you can pop up a new terminal and just do gomd. (you can't with pushd/popd since the bash processes of the old and the new terminal are not related)Edit: I see that your script uses links, I'll check this out. |
|