diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-04-24 13:00:26 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-04-24 13:00:26 +0200 |
commit | 0532b4ec9ad78f279372a55a2f16339db8d1af14 (patch) | |
tree | 00e04f6000d06bd596f49256975ddef4536aaa83 | |
parent | 663b60bd4daa019085ba99ae468f8c4c39f7d7b9 (diff) | |
download | shellrc-0.7.2.tar.gz shellrc-0.7.2.tar.bz2 shellrc-0.7.2.zip |
function: add mcd to create directory change in to itv0.7.2
-rw-r--r-- | shellrc.d/function | 6 |
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 |