Will give it a shot however, good effort.
Don't waste your time by cd-ing in the terminal
11–20 of 124 posts
Re: Don't waste your time by cd-ing in the terminal
#12I've also wondered to myself why there isn't a terminal program with a directory tree by the side so you could just click on the directory that you want to be in, instead of ls -cd-tab-blah-^H-tab-^M. It would also a have a list of favorite and most-recently-used directories. A weekend project, perhaps...
Because that would require a mouse, and that would require an X server, etc...
Re: Don't waste your time by cd-ing in the terminal
#13Some helpful aliases to manage them:
alias 1='cd -1'
alias 2='cd -2'
alias 3='cd -3'
alias 4='cd -4'
alias 5='cd -5'
alias 6='cd -6'
alias 7='cd -7'
alias d='dirs -v'
alias h='history'
alias j='jobs'
Just one of the many reasons to use ZSH.
Re: Don't waste your time by cd-ing in the terminal
#14In the meantime, this kicks the pants off separate Finder + Terminal action: http://decimus.net/DTerm/
Re: Don't waste your time by cd-ing in the terminal
#15I've also wondered to myself why there isn't a terminal program with a directory tree by the side so you could just click on the directory that you want to be in, instead of ls -cd-tab-blah-^H-tab-^M. It would also a have a list of favorite and most-recently-used directories. A weekend project, perhaps...
Re: Don't waste your time by cd-ing in the terminal
#16I've also wondered to myself why there isn't a terminal program with a directory tree by the side so you could just click on the directory that you want to be in, instead of ls -cd-tab-blah-^H-tab-^M. It would also a have a list of favorite and most-recently-used directories. A weekend project, perhaps...
Because clicking a mouse takes you away from the keyboard .. a context switch if you like, which added up over time slow you down when you have work to do.
Re: Don't waste your time by cd-ing in the terminal
#17 alias ba='vim ~/.bash_aliases; source ~/.bash_aliases'
Just make aliases for all the directories you go to a lot. I have twenty-something different aliases that start with 'cd'.A bookmarking system seems like overkill to solve this problem.
Re: Don't waste your time by cd-ing in the terminal
#18There's also the pushd and popd commands which are part of bash already. And there's a wikipedia entry for this even: http://en.wikipedia.org/wiki/Pushd_and_popd
Re: Don't waste your time by cd-ing in the terminal
#19Don't waste your time bookmarking directories, jump right to them ;) https://github.com/rupa/z `z` tracks your most used directories. After a short learning phase, it will take you to the directory, based on its usage frequency and a hint you give it on the command line. Say I am often cd'ing into /var/www - then after a while I can just type `z ww`.
It's become so ingrained in my fingers that whenever I switch to a new shell it's the first thing I port over:
Re: Don't waste your time by cd-ing in the terminal
#20No mention of ZSH directory stacks yet? http://www.acm.uiuc.edu/workshops/zsh/dir_stack.html Some helpful aliases to manage them: alias 1='cd -1' alias 2='cd -2' alias 3='cd -3' alias 4='cd -4' alias 5='cd -5' alias 6='cd -6' alias 7='cd -7' alias d='dirs -v' alias h='history' alias j='jobs' Just one of the many reasons to use ZSH.
What shell doesn't have a directory stack?