Canadian Mac Forums at ehMac banner

Neat Panther Tricks

3K views 37 replies 15 participants last post by  Chealion 
If there is one alias you should put in your shell its this:

alias pd2='pushd +2'
alias pd='pushd'

I find a lot of people don't know about "pushd"
I'll show its use with an example.

Say you are working in 3 directories in one shell
/usr/local/bin
Library/Preferences
/Volumes/skiddie/blah/blah/blah

With the pushd command (now aliased to the more handy "pd" and "pd2" ) you can flick between the three direcectories in one shell without typing the path over and over again.
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top