alias ='cd path/to/'
Then you can just type: $
You can even set up an alias to add a new alias -> alias ea='vim ~/bash/alias'
31–39 of 39 posts
alias ='cd path/to/'
Then you can just type: $
You can even set up an alias to add a new alias -> alias ea='vim ~/bash/alias'
ln -s ~/super/long/nested/directory/name ~/short
If you don't want to dump them in your home directory, just make a directory with a single-letter name for your links: ln -s ~/super/long/nested/directory/name ~/l/shortDid anybody try the script in ZSH?
Why not just use a symlink? ln -s ~/super/long/nested/directory/name ~/short If you don't want to dump them in your home directory, just make a directory with a single-letter name for your links: ln -s ~/super/long/nested/directory/name ~/l/short
alias proj="cd /this/that/foo/projects/myproject/ && source .hsenv/bin/activate" 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.
It looks like no one has posted what, in my opinion, is the most powerful of the "jump" programs: fasd. My workflow for getting around is just to type "z " and I almost always end up where I want. If I just want to edit a file, not a project, I do vim `f ` and likewise get the file I want typically. The readme makes it pretty clear how awesome it is and I've stuck with it after using autojump, z, and others. https://…