aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-04-24 13:00:26 +0200
committerKarel Kočí <karel.koci@nic.cz>2019-04-24 13:00:26 +0200
commit0532b4ec9ad78f279372a55a2f16339db8d1af14 (patch)
tree00e04f6000d06bd596f49256975ddef4536aaa83 /shellrc.d
parent663b60bd4daa019085ba99ae468f8c4c39f7d7b9 (diff)
downloadshellrc-0532b4ec9ad78f279372a55a2f16339db8d1af14.tar.gz
shellrc-0532b4ec9ad78f279372a55a2f16339db8d1af14.tar.bz2
shellrc-0532b4ec9ad78f279372a55a2f16339db8d1af14.zip
function: add mcd to create directory change in to itv0.7.2
Diffstat (limited to 'shellrc.d')
-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