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

https://github.com/dubniczky/shell-utilities

Collection of shell utilities for bash and zsh terminals to automate tedious tasks
https://github.com/dubniczky/shell-utilities

automation bash linux macos script utility

Last synced: about 1 month ago
JSON representation

Collection of shell utilities for bash and zsh terminals to automate tedious tasks

Awesome Lists containing this project

README

          

# Shell Utilities

Collection of utility shell scripts to automate often-used command combinations.

## Details

The basic Linux environment comes with a wide arsenal of utility applications and commands to use. They are usually made for a specific task with a lot of options. This makes them versatile, but sometimes uncomfortable to use repeatedly if you are looking for a simple interface.

This project expands on the built-in functionalities of these modern Linux (and mac) systems to provide a bit more complex functionalities in a simple format.

### Considerations

- **Independent**: scripts must be compatible with modern Linux and Mac systems with the use of `bash`,
- **Standalone**: scripts can run without any others in this library,
- **Autonomous**: scripts must be non-interactable, meaning the only settings are passed with the use parameters and don't require any stdin,
- **Concise**: scripts must produce minimal output text, if the command is only successful or unsuccessful, it must be communicated with an error code,
- **Focused**: scripts must be focused on a single purpose instead of being highly customizable

## Install

Install the scripts with this one-liner command.

```bash
curl -fsSL https://raw.githubusercontent.com/dubniczky/Shell-Utilities/main/setup.sh | sh -
```

Or manually

1. Clone repository

```bash
git clone https://github.com/dubniczky/Shell-Utilities
```

2. Move to repository

```
cd Shell-Utilities
```

3. Run the installer

```
make install
or
chmod +x install.sh && ./install.sh
```

## Commands

|Command|Script|Tags|Description|
|---|---|---|---|
|`embark`|[source](./scripts/embark.sh)|`docker`|Build the local Dockerfile and quick run it with customizable parameters|
|`gitid`|[source](./scripts/gitid.sh)|`git`|Change the commit identity of the current git repository|
|`mop`|[source](./scripts/mop.sh)|`files`|Clean up common temporary files and folders in the current directory|
|`origin`|[source](./scripts/origin.sh)|`git`|Quick download a git repository to a local projects folder by name|
|`packup`|[source](./scripts/packup.sh)|`package`|Update various packages and applications from multiple sources|
|`pubs`|[source](./scripts/pubs.sh)|`ssh`|An utility that prints the public ssh key of the current user or the specified user|
|`pull`|[source](./scripts/pull.sh)|`git`|Search for each git repository in current folder and pull the changes and tags|
|`push`|[source](./scripts/push.sh)|`git`|Search for each git repository in current folder and push the commits and tags|
|`bash16`|[source](./scripts/bash16.sh)|`random`|Generate cryptographically secure random base16 strings|
|`bash64`|[source](./scripts/bash64.sh)|`random`|Generate cryptographically secure random base64 strings|
|`sail`|[source](./scripts/sail.sh)|`docker`|Manage docker daemon|
|`shtart`|[source](./scripts/shtart.sh)|`bash`|List bash startup scripts|
|`sink`|[source](./scripts/sink.sh)|`docker`|Kill all currently running docker containers|
|`snek`|[source](./scripts/snek.sh)|`python`|Activate given python version as the python command|
|`venv`|[source](./scripts/venv.sh)|`python`|Initialize a python virtual environment and install packages|