Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brandonpacewic/mkcdir

Shell script for unix that creates a folder and sets it as the working directory in the same step
https://github.com/brandonpacewic/mkcdir

Last synced: 12 days ago
JSON representation

Shell script for unix that creates a folder and sets it as the working directory in the same step

Awesome Lists containing this project

README

        

# mkcdir
Shell script for unix that creates a folder and sets it as the working directory in the same step.

### Example

```
mkcdir this
```

Runs

```shell
mkdir this
cd this
/bin/bash
```

Now a new folder "this" has been created and opened in the terminal

```
/bin/bash
```

Is needed to keep the directory after the program termniates

### Global Command

----

To turn this into a global command you first need root permissions

```
chmod a+rx mkcdir.sh
```

Followed by

```
sudo ln mkcdir.sh /usr/local/bin/mkcdir
```

And done! You can now use the "mkcdir" command whenever you want!

Enjoy