Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexChaplinBraz/shell-scripts
POSIX compliant shell scripts.
https://github.com/AlexChaplinBraz/shell-scripts
posix-compliant shell-scripts
Last synced: 3 months ago
JSON representation
POSIX compliant shell scripts.
- Host: GitHub
- URL: https://github.com/AlexChaplinBraz/shell-scripts
- Owner: AlexChaplinBraz
- License: mit
- Created: 2020-02-01T20:51:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-28T21:20:53.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T19:55:29.248Z (6 months ago)
- Topics: posix-compliant, shell-scripts
- Language: Shell
- Homepage:
- Size: 183 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - AlexChaplinBraz/shell-scripts - POSIX compliant shell scripts. (Shell)
README
# Shell scripts
These shell scripts are written to be as POSIX compliant as possible, and as such, POSIX dependencies are assumed to
exist on the system. Otherwise, each script checks by itself if its dependencies are accessible and informs the user if
they are not.The help and error messages are colourised with ANSI codes (SRG), and if a program requires to be run as root it will be
informed to the user. Configuration is handled through environment variables and somethimes config files.## dmenu-scripts
This was previously a repo with only dmenu scripts, but will now hold all my shell scripts. My standards have gone up,
so I'm gradually rewriting them. The goal is to have a choice of frontends, like is the case with `quickedit`, which is
a rewrite of `dedit`.## Short descriptions of the scripts
Learn more about them by reading their `HelpMessage` variable.
### newsh
Creates an executable script linked to local bin from a template with lots of useful features and opens it with your
EDITOR. This template is used to set a standard of how my scripts should look and behave.### trackconf
Great way to manage a dotfiles repository. Makes use of `ranger`'s file selection feature to add config files to the
dotfiles repository, symlinking them back to where they belonged. Also allows for deploying configs by essentially
doing the opposite and symlinking the selected configs from inside the dotfiles repo to where they would belong,
creating any missing directories.### rbackup
A fairly great backup solution that allows one to configure multiple `rsync` transfers that run in series. Has support
for dated versioning and an exclusions file for each backup. Also handles remote servers by checking connectivity before
syncing. If unavailable, it's skipped and the next backup starts. Same for errors with the configuration. Additionally,
supports logging the output of the script.### linkto
Easy way to symlink selected files with `ranger` into the specified directory. Mainly used to link scripts into local
bin.### quickedit
Quickly find and open files to edit. By default uses `fzf` for displaying found files, but can alternatively use
`dmenu`.### saveinstalled
Save lists of explicitly installed official and AUR pacman packages. Can also save a custom list based on the
directories inside the specified directory. Useful for packages that have been installed from source.### lndirex
Symlink all the executable files inside one directory into another one, replacing any existing links. Precursor to
`linkto`, but still somewhat useful.### upmir
Update pacman's mirrorlist, ranked by speed. Must be run as root.
### rex
Show colourised rustc error message explanation in a pager.
### ex
General extraction helper.
### fixwinperms
Windows is crap and so is the way permissions get set when transferring from it. This script fixes permissions
recursively on files and directories by setting them to 644 and 775 respectively. This is important because you
shouldn't have files with 777 permissions all over the place.CAUTION: careful where you run it, since you could screw your system up royally. Not unfixable, but really troublesome.
### checkvdur
Check total duration of all videos of the same extension inside the current directory.
### genrepass
This is the original shell script that [genrepass-cli](https://github.com/AlexChaplinBraz/genrepass-cli) is based on.
My first big script, as it were.## Donate
Please consider supporting me through [donate.alexchaplinbraz.com](https://donate.alexchaplinbraz.com/?project=4)
to motivate me to keep working on this project.## Legal
MIT License.