Tagged Questions
2
votes
2answers
84 views
How can I create a “base” for other aliases to refer to and enable cd base/x command directories?
I have .bash_aliases with:
alias c1='cd /home/me/code/php'
alias c2='cd /home/me/code/jquery'
alias c3='cd /home/me/code/ruby'
alias c4='cd /home/me/code/c'
How can I DRY this up and loosen the ...
1
vote
1answer
91 views
How can I add an alias for my pwd to an existing file?
I want to add another alias to my "aliases" file for the directory I'm currently in (Present Working Directory)
I've tried
printf "alias aaa=cd " + pwd >> myfile
It's close, but I end up ...
49
votes
21answers
4k views
Quick directory navigation in the terminal
I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/.
But I don't want to type cd ...
8
votes
2answers
311 views
Change directory without typing cd?
Is it possible to make bash change directory in command line simply by typing that directory without any commands like cd?
For example is it possible instead of writing this:
$ cd /tmp
I just want ...