3 ms·
I do something similar to this and have the majority of my zshrc version controlled and publicly available. http://bitbucket.org/tednaleid/shared-zshrc http://
by tednaleid 16y ago
I do something similar to this and have the majority of my zshrc version controlled and publicly available.
http://bitbucket.org/tednaleid/shared-zshrc http://bitbucket.org/tednaleid/shared-zshrc
I put together a blog post on how to use it along with some descriptions of specific aliases/functions that I find really useful:
http://naleid.com/blog/2009/05/13/shared-zshrc-file/ http://naleid.com/blog/2009/05/13/shared-zshrc-file/
Global aliases are one of the things I love about zshrc. In addition to that, the file globbing is a huge productivity benefit. Being able to use "/foo.txt", rather than "find . -name foo.txt" is nice.
I think that everyone should also learn the cursor movement keybindings (which default to the emacs ones instead of vi ones). I think these might be the same in bash (where C is control and M is meta, likely alt/option or escape):
* C-r - search backwards through history
* C-a - beginning of line
* M-b - move back one word
* C-b - move back one letter
* C-f - move forward one letter
* M-f - move forward one word
* C-e - end of line
* C-s - search forwards through history