/ README.md
README.md
 1  # bash_env
 2  My bash environment
 3  
 4  # Optional requirements
 5  
 6   - helix
 7   - vim
 8   - tmuxinator
 9  
10  # Usage
11  
12      git clone https://gitlab.com/LoveIsGrief/bash_env.git /a/path/of/your/choosing
13  
14  Add these lines to your `.profile`, `.bashrc` or other file  that is read by bash at startup
15  
16  ```sh
17  MY_BASH_INIT_DIR=/a/path/of/your/choosing/
18  . ${MY_BASH_INIT_DIR}/init.bash
19  ```
20  
21  ## nixOS
22  
23  You can install the package manually `/etc/nixos/loveisgriefBash.nix` with the following contents
24  that you adapt by changing the revision.
25  
26  ```nix
27  { config, pkgs, ... }:
28  let
29    rev = 'PASS THE COMMITISH HERE';
30    loveisgriefBash = import (pkgs.fetchFromGitLab {
31        owner = "LoveIsGrief";
32        repo = "bash_env";
33        inherit rev;
34        sha256 = "";
35    }) {
36      inherit pkgs;
37      version = rev;
38    };
39  in
40  {
41  
42    environment.systemPackages = with pkgs;[
43      tmux
44      loveisgriefBash
45    ];
46  }
47  ```
48  
49  And add
50  
51  ```sh
52  MY_BASH_INIT_DIR="$(bash_env)"
53  [[ -n "${MY_BASH_INIT_DIR}" ]] && . "${MY_BASH_INIT_DIR}/init.bash"
54  ```
55  to your `~/.profile`.
56