2 ms·
One of the shortcuts I use a lot: ``` mkcd() { if [ $# != 1 ]; then echo "Usage: mkcd <dir>" else mkdir -p $1 &
by tiriplicamihai 4y ago
One of the shortcuts I use a lot:
```
mkcd() {
if [ $# != 1 ]; then
echo "Usage: mkcd <dir>"
else
mkdir -p $1 && cd $1
fi
}
```