EMBED THIS RECORDING:
<div><script id="playterm-MjAxNS0wMy9jZGFibGV2YXJzdHR5cmVjLTE0MjU2NDE1Nzd8ODB4MjQ=" type="text/javascript" src="https://playterm.org/js/?hash=MjAxNS0wMy9jZGFibGV2YXJzdHR5cmVjLTE0MjU2NDE1Nzd8ODB4MjQ=" class="size:80x24"></script></div>
I recorded this `directory bookmarks using shopt` shellsession because 'cd -' is used by most of us
to switch between current/last directory.
Here's a cool technique which allows directory bookmarks.
### ~/.bashrc :
[[ -f ~/.bashrc.dirs ]] && . ~/.bashrc.dirs
### ~/.bashrc.dirs define:
export slog="/mnt/disk1/me/projects/solidrake/var/log"
This will allow you to type:
$ cd slog
$ pwd
/mnt/disk1/me/projects/solidrake/var/log
john c said
actually no need or 'export', just type this:
log=$(pwd)
instead of:
export log="($pwd)"