https://github.com/svhl/scripts
Yet another scripts repo
https://github.com/svhl/scripts
bash script
Last synced: 8 months ago
JSON representation
Yet another scripts repo
- Host: GitHub
- URL: https://github.com/svhl/scripts
- Owner: svhl
- License: gpl-3.0
- Created: 2024-11-03T13:57:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-18T11:56:30.000Z (over 1 year ago)
- Last Synced: 2025-02-18T12:43:14.741Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svhl/scripts
Scripts I use that I couldn't find anywhere else. Some are modified from others' scripts.
## Scripts
### [logout](https://github.com/svhl/scripts/tree/main/logout.sh)
Prevent a logout app icon from sometimes appearing in the taskbar on KDE Plasma when calling the logout screen with ctrl+alt+del. Tested on Plasma 5.27.
### [vim](https://github.com/svhl/scripts/tree/main/vim)
A wrapper script to automatically use sudo when opening root-owned files and prevent you from vimming into directories. Based on [vim-auto-sudo](https://github.com/n3b0j5a/vim-auto-sudo).
### [git](https://github.com/svhl/scripts/tree/main/git)
A wrapper script to shorten a few long Git commands.
#### `copy`
Simplify cloning a repo.\
Usage: `git copy [user]/[repo] [branch]`
#### `sync`
Set remote repo. Token needs to be set in `GIT_TOKEN` environment variable.\
Usage: `git sync [user]/[repo]`
#### `undo`
Undo the last commit and remove from history.\
Usage: `git undo`
## How to use
Make scripts executable with `chmod +x [script]`. Move wrapper scripts to `~/.local/bin/`.