Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joinemm/bin
:wastebasket: Compilation of all my shell scripts
https://github.com/joinemm/bin
linux shell
Last synced: about 1 month ago
JSON representation
:wastebasket: Compilation of all my shell scripts
- Host: GitHub
- URL: https://github.com/joinemm/bin
- Owner: joinemm
- Created: 2021-03-24T14:40:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T18:02:35.000Z (about 2 months ago)
- Last Synced: 2024-11-05T19:18:33.510Z (about 2 months ago)
- Topics: linux, shell
- Language: Shell
- Homepage:
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- starred - joinemm/bin - :wastebasket: Random shell scripts (Shell)
README
# `bin`
This is a collection of bash scripts I've written over the years for various purposes.
## Usage on standard distros
You can find the scripts in `./src`.
## Usage with Nix
Nix flake is included, which exposes some of the scripts as nix packages. (Many of them have no use on NixOS but are here for legacy reasons)
The built derivations include all of their dependencies in the wrapper path, so all scripts can be used as a self contained program.
You have two options: you can either install these scripts into your system path, or run them with `nix run`.
### Install
In your system `flake.nix` import the flake as an input:
```nix
{
# ...
inputs = {
bin.url = "github:joinemm/bin";
... # your other inputs
};
}
```The script packages are exposed under `inputs.bin.packages.${system}`, and available for most unix systems (though only `x86-64_linux` is actually tested).
You can install the scripts you need like any other package:
```nix
{
environment.systemPackages = [
inputs.bin.packages.${system}.color
];
}
```After this, the script is in your path and you can simply run it like any other program:
```sh
color
```### Run without installing
```sh
nix run github:joinemm/bin#color
```