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

I prefer to use inputrc instead of aliases. Put the following into your .inputrc

    "\C-gs": "git status -sb "
Then, for example, after pressing Ctrl-g, s "git status -sb " will appear in your prompt. Much more readable than lots of two or three letter aliases. You can see the complete list of my shortcuts on my GitHub - https://github.com/grn/dotfiles/blob/master/inputrc



I don't like rebinding C-g, as that's the 'cancel' key for things like incremental search (in emacs bindings).


Good point! Interestingly I managed to work without it somehow. I just checked that C-g C-g works as cancel when those binding are present.




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

Search: