(add): mkcd function
This commit is contained in:
1 parent
def155602a
commit
f4c3dc7bbb
1 file changed
+9
@@ -32,3 +32,12 @@ function cv() {
|
||||
source ~/python-venv/default/bin/activate
|
||||
fi
|
||||
}
|
||||
|
||||
function mkcd() {
|
||||
if [ ! -d $1 ]; then
|
||||
mkdir -p $1
|
||||
fi
|
||||
if [ -d $1 ]; then
|
||||
cd $1
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user