aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-05 13:48:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-05 13:48:56 +1300
commit939fa6b778577dcdbb7b7d50c5cad5b5efc3344a (patch)
tree7544d325656d5fa116b76fe7fcdb83955d7598a3
parentTell shellcheck it's wrong about this line (diff)
downloaddotfiles-939fa6b778577dcdbb7b7d50c5cad5b5efc3344a.tar.gz
dotfiles-939fa6b778577dcdbb7b7d50c5cad5b5efc3344a.zip
md() shortcut for mkdir(1)
-rw-r--r--bash/bashrc.d/md.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/bashrc.d/md.bash b/bash/bashrc.d/md.bash
new file mode 100644
index 00000000..d32cf488
--- /dev/null
+++ b/bash/bashrc.d/md.bash
@@ -0,0 +1,5 @@
+# mkdir(1) shortcut
+md() {
+ mkdir -p -- "$@"
+}
+