scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 139a939b56d59c34b315439ecb038ba71ad28baf
parent c7c91d04baae78ae88b314441674560c169f7556
Author: gearsix <gearsix@tuta.io>
Date:   Sat, 16 Sep 2023 18:03:19 +0100

readme: minor change to titles

Diffstat:
MREADME.md | 38++++++++++++++++----------------------
Msrc/posix/preview-md.sh | 2+-
2 files changed, 17 insertions(+), 23 deletions(-)

diff --git a/README.md b/README.md @@ -1,19 +1,8 @@ -# g6scripts - -A collection of personal scripts I use. - - -## contents - -1. [overview](#overview) -2. [installing](#installing) -3. [uninstall](#uninstall) -4. [notes](#notes) -5. [scripts](#scripts) - ## overview +A collection of personal scripts I use. + I use most of these scripts for convenience and to save on typing. More recently I've been making an effort to learn PowerShell as I tend to use windows a fair bit too, so there are a few one-off scripts used for that too. @@ -22,9 +11,12 @@ More recently I've been making an effort to learn PowerShell as I tend to use wi - **win/** - Scripts for Windows. Using `PowerShell` - **any/** - Scripts for multiple environments (mostly `Python`). -## ./install.sh (posix only) -I've created an install script (bash) to help with selecting the scripts you want to install. +## install + +**POSIX (Linux, Mac, BSD)** + +I've created an install script (bash). usage: ./install [ARGUMENTS] [SCRIPT] @@ -43,29 +35,31 @@ I've created an install script (bash) to help with selecting the scripts you wan -h, --help print this dialog -## notes +**Windows** + +I haven't got a script for Windows since there aren't enough scripts to justify the effort (yet). -I've added `-h` options to all the scripts. +What I usually do is just put the scripts in a directory and add it to the `PATH` environment variable. -Personally find `grepf` and `while-true` to by the most frequently used. +## scripts -## windows (powershell) scripts +### Powershell - *random* - a script I use to select a random item in a directory. - *zipto7z* - converts all .zip files in current directory to .7z. - *flac2mp3* - convert flac files to mp3 files using ffmpeg. -## any +### Python - *d2h* - convert decimal numbers to hexadecimal. - *h2d* - convert hexadecimal numbers to decimal. - *jiggle* - move the mouse 1px every minute - keep the screen awake. -## posix scripts +### Shell/Bash -I make an effort to keep to **sh** when I can - for compatibility-sake. +I make an effort to keep to **sh** when I can, for compatibility-sake. **strings & numbers** diff --git a/src/posix/preview-md.sh b/src/posix/preview-md.sh @@ -51,7 +51,7 @@ for arg in "$@"; do if [ $OPEN ]; then if [ "$system" = "Darwin" ]; then open "$out"; - elif [ "$system" = "Linux" ]; then xopen "$out"; + elif [ "$system" = "Linux" ]; then xdg-open "$out"; fi fi fi