(add): mkcd function
This commit is contained in:
1 parent
def155602a
commit
f4c3dc7bbb
2 files changed
+10
-1
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -9,4 +9,4 @@
|
||||
"\tmain()"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user