16 Feb '12, 3pm

Run a command every time you change directories in zsh with `chpwd`:

February 16, 2012 Tagged: yesterday i learned zsh terminal Comments (View) Run a command every time you change directories in zsh You can run a command every time you change directories in zsh with the chpwd function: export CURRENT_PROJECT_PATH=$HOME/.current-project function chpwd { echo $(pwd) >! $CURRENT_PROJECT_PATH } current() { if [[ -f $CURRENT_PROJECT_PATH ]]; then cd "$(cat $CURRENT_PROJECT_PATH)" fi } current This will write the current directory to a hidden file in $HOME ; opening a new terminal will automatically cd to that directory.

Full article: http://robots.thoughtbot.com/post/17712589200/run-a-comma...

Tweets

of every time arsenal midfielder aaron ramsey scores, a famous figure dies.: Every time the Arsenal midfielder A...

of every time arsenal midfielder aaron ramsey s...

lancerlord.blogspot.com 16 Feb '12, 12am

Every time the Arsenal midfielder Aaron Ramsey scores, a famous figure dies. He scored against Man United and the next day...

Blogging on NUS’ facebook, “The Change is Me”

Blogging on NUS’ facebook, “The Change is Me”

otterman.wordpress.com 16 Feb '12, 3pm

This year, the NUS Admissions Publicity Campaign has picked the theme, “The Change is Me”. I was asked to contribute by bl...

Sold: Geronimo Stilton, Run for the hills, Gero...

secondhandbooks.com.sg 19 Feb '12, 9am

Welcome to my Second Hand Book Shop. As a book lover, I have built up a collection but need space for new books. I prefer ...

Finding Happiness in Difficult Changes #Happiness #change

Finding Happiness in Difficult Changes #Happine...

feelgoodstyle.com 18 Feb '12, 10am

“Try to realize it’s all within yourself – no one else can make you change, and to see you are only very small and life fl...

Time for an oil change: Americans strongly oppose fossil fuel subsidies

Time for an oil change: Americans strongly oppo...

grist.org 15 Feb '12, 8pm

Cross-posted from Climate Progress . As part of the fiscal year 2013 budget [PDF] released on Feb. 13, President Obama pro...

Interesting not-too-mainstream zsh tricks. Lear...

chneukirchen.org 20 Feb '12, 7am

« Merry Christmas! February 2012 17feb2012 · 10 new zsh tricks you may not know... It’s been over a year since the last in...

By training an African Lance Armstrong, this Singaporean could change pro cycling #socent

By training an African Lance Armstrong, this Si...

sgentrepreneurs.com 17 Feb '12, 4am

By training an African Lance Armstrong, this Singaporean could change pro cycling February 17, 2012 by Terence LEE Zakayo ...

#Mahathir warns #Malaysia of #US #Israel plot t...

blog.limkitsiang.com 17 Feb '12, 3am

By Dr Mustafa K Anuar , Aliran Hon Secretary 16 February 2012 Aliran is troubled by the ex-premier Dr Mahathir Mohamad’s r...

free run 2

free run 2

fashiontoast.com 23 Feb '12, 4am

. With leather (here Current Elliott but I just got some J Brands that changed my life). Super comfortable and I still fee...

SEO Chat Forums - Do directories really help th...

forums.seochat.com 19 Feb '12, 7am

Do directories really help that much? in the Search Engine Optimization forum on SEO Chat. Do directories really help that...

Can 1 man photograph every animal species on Earth?

Can 1 man photograph every animal species on Ea...

mnn.com 17 Feb '12, 4pm

All photos: © Joel Sartore/joelsartore.com A young mandrill in Malabo, Equatorial Guinea. To say that National Geographic ...

How To Run Your PPC Accounts Like A Project

How To Run Your PPC Accounts Like A Project

searchengineland.com 20 Feb '12, 2pm

Managing PPC accounts can be overwhelming. There is so much to-do, and no one ever has enough time. This leads most people...