Custom fish environment with a (kinda) pretty prompt, and some convenience aliases and functions.
-
setup.fish
: Initializes shell environment: -
Symlinks repo to
~/.config/fish
-
Checks for SSH key, creates if missing
-
Sets Git user name and email (user input) if not already set
-
config.fish
: Main configuration file. Set some variables, configure paths, source scripts/custom functions/packages, etc. -
functions/
: Contains all custom content, including:- aliases - custom aliases
- functions - custom functions
- fish prompt - custom, colorized, and informational prompt
- and utility for other useful tools such as bass and nvm
-
fish_variables
: Auto-generated by Fish. Not recommended to edit directly. -
fish-tips/
: Just some useful chunks of fish code
-
Clone the repo
><> git clone https://gitlab.com/glass-ships/glass-fish.git
-
Initialize new environment:
><> cd glass-fish ;; fish setup.fish
-
(Optional) Store any secrets as environment variables. Create a file called
secrets.json
in the root of the repo.- This file is ignored by git, so your secrets are safe if you contribute to this repository.
The format should be:
{ "SECRET_ONE": "SECRET_VALUE", "SECRET_TWO": "OTHER_SECRET_VALUE" ... }
- This file is ignored by git, so your secrets are safe if you contribute to this repository.
-
(Optional) For plugin management, install fisher or Oh My Fish
-
(Optional) For BASH compatibility, add EDC/Bass
-
Enjoy!
This repo could probably use some regular TLC. If you're interested in helping out, just create an issue, or fork the repo and merge request back in!
~ Glass