2024-04-06 14:45:38 +00:00
|
|
|
# TUI scripts
|
2024-03-16 15:43:03 +00:00
|
|
|
## Description
|
2024-04-06 18:23:10 +00:00
|
|
|
Terminal user interface scripts for popular cli tools such as `apt`, `systemctl`, `git`, `kubectl`. Based on `dialog` and `fzf`
|
2024-03-16 15:43:03 +00:00
|
|
|
|
|
|
|
## Scripts
|
2024-04-06 18:23:10 +00:00
|
|
|
- `a` - for managing `apt` packages
|
|
|
|
- `g` - for managing `git` repositories
|
2024-03-16 15:51:56 +00:00
|
|
|
- `s` - for managing systemd services
|
2024-04-06 18:23:10 +00:00
|
|
|
- `k` - for managing kubernetes (depends on `kubectl`)
|
|
|
|
- `r` - for running named commands from `~/.aliases.txt` file
|
2024-04-06 18:02:42 +00:00
|
|
|
|
2024-04-06 15:57:18 +00:00
|
|
|
![Sripts in action](./images/scripts_in_action.gif)
|
2024-03-16 16:48:00 +00:00
|
|
|
|
2024-03-16 15:43:03 +00:00
|
|
|
## Installation
|
2024-03-16 16:02:22 +00:00
|
|
|
### Ubuntu/Debian-based
|
2024-04-06 18:14:36 +00:00
|
|
|
Download latest `.deb` package:
|
2024-03-16 15:43:03 +00:00
|
|
|
```
|
2024-04-06 18:14:36 +00:00
|
|
|
curl -O "https://git.digitalstudium.com/digitalstudium/tui-scripts/releases/download/latest/tui-scripts_$(curl -s https://git.digitalstudium.com/digitalstudium/tui-scripts/raw/branch/main/VERSION)-1.deb"
|
|
|
|
```
|
|
|
|
Then install it:
|
|
|
|
```
|
|
|
|
sudo apt install ./tui-scripts_*.deb
|
2024-03-16 15:43:03 +00:00
|
|
|
```
|
2024-03-16 16:02:22 +00:00
|
|
|
### Other linux distros
|
|
|
|
Install dependencies: `fzf`, `dialog`, `xdotool`, `x11-xkb-utils`
|
2024-03-16 15:43:03 +00:00
|
|
|
|
2024-03-16 16:02:22 +00:00
|
|
|
Then clone this repo and copy all scripts to one of the PATH folder:
|
|
|
|
```
|
2024-04-06 14:43:20 +00:00
|
|
|
git clone https://git.digitalstudium.com/digitalstudium/tui-scripts.git
|
2024-04-06 18:02:42 +00:00
|
|
|
sudo cp tui-scripts/src/{a,g,s,r,k} /usr/local/bin/
|
2024-03-16 16:02:22 +00:00
|
|
|
```
|