Hacker News new | past | comments | ask | show | jobs | submit login

add this to you "~/.inputrc" :

"\C-xj": "\C-e\C-u # `pwd`\e\C-e\C-a\C-y\C-j"

Whenever you want a command saved with the launch directory, instead of Enter, press "CTRL-x j"




Why not make it default?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: