Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwoudenberg/random-colors
Automatically generates a random shell color scheme for every branch of every project.
https://github.com/jwoudenberg/random-colors
hacktoberfest
Last synced: about 2 months ago
JSON representation
Automatically generates a random shell color scheme for every branch of every project.
- Host: GitHub
- URL: https://github.com/jwoudenberg/random-colors
- Owner: jwoudenberg
- License: bsd-3-clause
- Created: 2018-04-22T09:56:26.000Z (over 6 years ago)
- Default Branch: trunk
- Last Pushed: 2021-10-05T16:51:45.000Z (about 3 years ago)
- Last Synced: 2024-10-13T02:22:18.111Z (3 months ago)
- Topics: hacktoberfest
- Language: Nim
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `random-colors`
Uses the amazing [colormind.io] to generate random color schemes for your terminal. Give every branch of every git project on your machine a unique look!
## Supported terminals and shells
I tested `random-colors` with these terminals:
- iTerm
- Alacritty
- KittyIt probably works with other xterm-compatible terminals. If you've had success using `random-colors` on a different terminal, please let me know in a Github issue!
`random-colors` support these shells:
- bash
- fishPR's adding support for more shells are most welcome!
## Installation
The easiest way to install this is using Nix:
```
nix-env -if https://github.com/jwoudenberg/random-colors/archive/master.tar.gz
````random-colors` needs to hook into your shell so it knows when you switch directories.
For bash:
```
echo 'eval "$(random-colors --hook=bash)"' >> ~/.bashrc
```For fish:
```
echo 'random-colors --hook=fish | source' >> ~/.config/fish/config.fish
```## Usage
After the installation `random-colors` should work automatically. Try `cd`-ing into a git directory or changing branches. If the color scheme generated is not to your liking, you can generate a different one using
```
random-colors --refresh
````random-colors` remembers which scheme belongs to a particular project and branch and will restore it once you return to the project and branch.
[colormind.io]: http://colormind.io/