aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shellrc.d/function6
1 files changed, 6 insertions, 0 deletions
diff --git a/shellrc.d/function b/shellrc.d/function
index 37313b2..f0ad1d7 100644
--- a/shellrc.d/function
+++ b/shellrc.d/function
@@ -1,5 +1,11 @@
# vim: ft=sh:
+# Create directory and change in to it
+mcd() {
+ mkdir -p "$*"
+ cd "$*"
+}
+
# Run process in background
tbg() {
mkdir -p /tmp/tbg-log