diff options
author | Minijackson <minijackson@riseup.net> | 2023-02-04 15:00:00 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-02-04 15:00:00 +0100 |
commit | 19bbf44c673104a7fa5a8d912254e7dd7c993914 (patch) | |
tree | 91386d37b32bc7d9692fe7cb02fa85cb8bec618d /common/commandline/git.nix | |
parent | 1be58044a9a17eca349652fcf9db7b0113f663dd (diff) | |
download | nixos-config-reborn-19bbf44c673104a7fa5a8d912254e7dd7c993914.tar.gz nixos-config-reborn-19bbf44c673104a7fa5a8d912254e7dd7c993914.zip |
git: install branchless globally, fix `git sw`
Diffstat (limited to 'common/commandline/git.nix')
-rw-r--r-- | common/commandline/git.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/commandline/git.nix b/common/commandline/git.nix index fb9bed2..7c387c2 100644 --- a/common/commandline/git.nix +++ b/common/commandline/git.nix | |||
@@ -3,9 +3,10 @@ inputs: | |||
3 | { config, pkgs, lib, ... }: | 3 | { config, pkgs, lib, ... }: |
4 | 4 | ||
5 | { | 5 | { |
6 | users.users.minijackson.packages = [pkgs.git-branchless]; | 6 | environment = { |
7 | 7 | systemPackages = [pkgs.git-branchless]; | |
8 | environment.shellAliases.git = "git-branchless wrap --"; | 8 | shellAliases.git = "git-branchless wrap --"; |
9 | }; | ||
9 | 10 | ||
10 | programs.zsh.interactiveShellInit = '' | 11 | programs.zsh.interactiveShellInit = '' |
11 | source ${../../dotfiles/git-branchless.zsh} | 12 | source ${../../dotfiles/git-branchless.zsh} |