But it's nice to have awk for the slightly more complicated cases, up until it's easier to use Python or another language.
But it's nice to have awk for the slightly more complicated cases, up until it's easier to use Python or another language.
cdd : like cd but can take a file path
- : cd - (like 1-level undo for cd)
.. : cd ..
... : cd ../.. (and so on up to '.......')
nd : like cd but enter the dir too
udd : go up (cd ..) and then rmdir
xd : search for arg in parent dirs, then go as deep as possible on the other branch (like super-lazy cd, actually calls a python script).
ai : edit alias file and then source it
Also I set a bindkey (F5 I think) that types out | awk '{print}' followed by the left key twice so that the cursor is in the correct spot to start awk'in ;D
# Bind F5 to type out awk boilerplate and position the cursor
bindkey -c -s "^[[[E" " | awk '{print }'^[[D^[[D"
Edit: better formatting (and at work now so pasted the bindkey)