I realized that I have a bunch of CLI go to commands and aliases that speed up my productivity and was wondering what others use.
A few of my favs:
-
history | grep 'something'
- for finding a command I ran in the past -
zz
- opens up ~/.zshrc for editing -
wpd
- uses my local PHP version to run WP CLI so I can use XDEBUG on the CLI
What are your aliases and CLI goto productivity commands?
For a more compact git history:
To easily pipe into and out of my clipboard on the terminal:
I actually use this a lot to pipe, for example, GPG output directly into the clipboard and then paste it into some GUI application.
pstree -s $$
to show me the path from PID 1 to my current shell. This is really useful when you often start shells from within shells to manage context.I also have aliases like
This way I only have to type
server
and I get a persistent serssion that lasts until server restart, that I can detatch from easily with Ctrl+D and reattach by just callingserver
again.Other than that, I have more than 1k lines in my .vimrc, so I will just leave a link to that instead of telling you about everything it does ;)