diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-01-18 15:51:05 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-01-18 15:51:05 +0200 |
commit | 08566ea0ee6feb93129a5d72f0e40e0c356c90de (patch) | |
tree | 6290c850a431020a168b69e2f9f031c19e2f1303 | |
parent | 1bef4687952df08548e85fc4f5c8fd85f8b259ec (diff) | |
download | nixos-configuration-08566ea0ee6feb93129a5d72f0e40e0c356c90de.tar.gz nixos-configuration-08566ea0ee6feb93129a5d72f0e40e0c356c90de.tar.bz2 nixos-configuration-08566ea0ee6feb93129a5d72f0e40e0c356c90de.zip |
feat(scripts): update git-check script
-rw-r--r-- | home-manager/stvnliu/scripts/git-check.script.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/home-manager/stvnliu/scripts/git-check.script.nix b/home-manager/stvnliu/scripts/git-check.script.nix index 82120bc..b122572 100644 --- a/home-manager/stvnliu/scripts/git-check.script.nix +++ b/home-manager/stvnliu/scripts/git-check.script.nix @@ -1,7 +1,4 @@ -{ pkgs -, config -, -}: +{ pkgs, config, }: let git = config.programs.git.package; # checks for any Git repositories with uncommitted changes @@ -33,7 +30,7 @@ pkgs.writeShellScriptBin "git-check" '' if $default_skip; then return; fi read -rp "Enter dirty directory? [y/n/N(skip others)] " userinput if [[ "$userinput" = "y" ]]; then - $SHELL + ${pkgs.lazygit}/bin/lazygit fi if [[ "$userinput" = "N" ]]; then default_skip=true |