From 0532b4ec9ad78f279372a55a2f16339db8d1af14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 24 Apr 2019 13:00:26 +0200 Subject: function: add mcd to create directory change in to it --- shellrc.d/function | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shellrc.d') 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 -- cgit v1.2.3