diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-04-02 15:07:54 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-04-02 15:07:54 +1300 |
commit | 963c46f4661539c343861aef3c0c36397ba3ec58 (patch) | |
tree | a915a5df6f70bcdcd10477afd2953ead15778b7a | |
parent | man(1) page suffixes in README (diff) | |
download | dotfiles-963c46f4661539c343861aef3c0c36397ba3ec58.tar.gz dotfiles-963c46f4661539c343861aef3c0c36397ba3ec58.zip |
Mention a few more shell-related tricks
-rw-r--r-- | README.markdown | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index 4a3bbca8..1a5fe228 100644 --- a/README.markdown +++ b/README.markdown @@ -172,16 +172,23 @@ things I really do get tired of typing repeatedly: There are a few other little tricks in `bash/bashrc.d`, including: -* `bd` — Change back into a named ancestor directory +* `bd` — Change into a named ancestor of the current directory * `ca` — Count given arguments * `cf` — Count files in a given directory * `hgrep` — `HISTFILE` search * `mkcd` — Create a directory and change into it +* `mkcp` — Create a directory and copy arguments into it * `mkmv` — Create a directory and move arguments into it * `pa` — Print given arguments, one per line +* `pd` — Change to the argument’s parent directory * `scr` — Create a temporary directory and change into it * `sprunge` — Pastebin frontend tool I pilfered from `#bash` on Freenode +I also wrap a few command calls with functions to stop me from doing silly +things that the commands themselves don’t catch. My favourite is the one that +stops me from calling `scp(1)` with no colon in either argument. I also do +things like give default arguments to `remind(1)` and `pwgen(1)`. + ### Testing You can test that both sets of shell scripts are syntactically correct with |