I decided that I wanted to use aliases to quickly navigate to directories.
Inside a directory I have called scripts
I create each one:
nano myAlias
#!/bin/bash
# file : /scripts/myAlias
#
cd /directory/that/i/want
Exit, save and repeat for each alias you want to create.
Then create a new file, mastercode.sh
(I also include it inside of scripts
).
nano mastercode.sh
#!/bin/bash
# file : /scripts/mastercode.sh
#
alias='. path/to/scripts/myAlias1'
alias='. path/to/scripts/myAlias2'
alias='. path/to/scripts/myAlias3'
for as many aliases as you have made, etc. Syntax is important here, as there is a space between the dot .
and path: alias='. path/'
Finally, I include at the end of my ~/.bashrc
source path/to/scripts/mastercode.sh
Have you heard of "autojump"? https://github.com/wting/autojump