简体   繁体   中英

Efficienty `cd' into programming workspace

My directory structure for all things programming is currently like this -

The folders are under this directory:

/home/borax12/programming

-android
-java
-GoogleApps

It is a pain to every time cd to this directory for any programming. So I wanted to know whats the best practice to access your programming documents efficiently.

I was of the opinion to create symlinks to all those folders, but I don't want my home folder to look cluttered.

Even if I make symlinks, can I hide them somehow?

You could use aliases (put them in your ~/.bashrc ):

alias ,p='cd /home/borax12/programming'
alias ,pj='cd /home/borax12/programming/java'
alias ,pa='cd /home/borax12/programming/android'

So these aliases start with commas, and keep you 3-4 characters away from code.

,p<CR>

And then there is autojump for overall cd goodness (written by, IIRC, a StackOverflow user).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM