https://github.com/probablykasper/my-bash-scripts
My personal bash scripts
https://github.com/probablykasper/my-bash-scripts
cli
Last synced: 11 months ago
JSON representation
My personal bash scripts
- Host: GitHub
- URL: https://github.com/probablykasper/my-bash-scripts
- Owner: probablykasper
- Created: 2019-04-03T19:14:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T23:04:33.000Z (over 1 year ago)
- Last Synced: 2025-03-02T08:45:40.796Z (over 1 year ago)
- Topics: cli
- Language: Shell
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# my-bash-scripts
These are the basic bash scripts I've made for myself. They're made for macOS, so some of them may not work on other platforms.
## Install
1. Download the scripts and put them in whatever folder you want. In my case, I just keep them with my other git repos.
2. Add the folder to your PATH, so you can call the scripts by their filename in your terminal from anywhere.
- For `bash`, add the following to your `~/.bash_profile`:
```bash
export PATH=:$PATH
```
- For `fish`, add the following to your `~/.config/fish/config.fish`:
```fish
set PATH "/Users/kasper/dev/git/my-bash-scripts/bin:$PATH"
```
## Scripts
Some of the scripts are described below. To see the help menus for the other scripts, either open the files inside `bin` or run the commands directly.
### welp
Lists all scripts in the `bin` folder.
### dco
Basic wrapper around the `docker-compose` command. The command works the same as `docker-compose`, except:
- When running `dco run`, the `--rm` argument is added (as long as `-d` or `--detach` are not present).
- When running `dco up`, `dco down` runs afterwards (as long as `-d` or `--detach` are not present).
If you've installed auto completion for `docker-compose` ([here's how to do that](https://docs.docker.com/compose/completion/)), this is how you can enable auto completion for `dco`:
- For `bash`, add the following to your `~/.bash_profile`:
```bash
complete -F _docker_compose dco
```
- For `fish`, add the following to your `~/.config/fish/config.fish`:
```fish
complete --command dco --wraps docker-compose
```
### sleepy
Puts your computer to sleep.