feat(scripts): update git-check script
This commit is contained in:
parent
1bef468795
commit
08566ea0ee
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,4 @@
|
||||||
{ pkgs
|
{ pkgs, config, }:
|
||||||
, config
|
|
||||||
,
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
git = config.programs.git.package;
|
git = config.programs.git.package;
|
||||||
# checks for any Git repositories with uncommitted changes
|
# checks for any Git repositories with uncommitted changes
|
||||||
|
@ -33,7 +30,7 @@ pkgs.writeShellScriptBin "git-check" ''
|
||||||
if $default_skip; then return; fi
|
if $default_skip; then return; fi
|
||||||
read -rp "Enter dirty directory? [y/n/N(skip others)] " userinput
|
read -rp "Enter dirty directory? [y/n/N(skip others)] " userinput
|
||||||
if [[ "$userinput" = "y" ]]; then
|
if [[ "$userinput" = "y" ]]; then
|
||||||
$SHELL
|
${pkgs.lazygit}/bin/lazygit
|
||||||
fi
|
fi
|
||||||
if [[ "$userinput" = "N" ]]; then
|
if [[ "$userinput" = "N" ]]; then
|
||||||
default_skip=true
|
default_skip=true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue