Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brandonpacewic/mkcdir
- Owner: BrandonPacewic
- License: mit
- Created: 2022-01-15T18:42:32.000Z (almost 3 years ago)
- Default Branch: mega
- Last Pushed: 2023-08-07T19:07:04.000Z (over 1 year ago)
- Last Synced: 2024-10-15T21:02:45.519Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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