mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 02:54:40 +02:00
remove nixos-commit check
This commit is contained in:
parent
865ce1b8ed
commit
70f2f2641a
2 changed files with 0 additions and 21 deletions
|
@ -31,7 +31,6 @@
|
|||
~/.config/foot/foot.ini: foot/foot.ini
|
||||
~/.gitconfig: git/gitconfig
|
||||
~/.profile.d/load: shell/load
|
||||
~/.profile.d/09-nixos-commited.sh: shell/nixos-commited.sh
|
||||
~/.profile.d/10-vars.sh: shell/vars.sh
|
||||
~/.profile.d/10-paths.sh: shell/paths.sh
|
||||
~/.profile.d/10-gitrepo-commited.sh: shell/gitrepo-commited.sh
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
case "$-" in
|
||||
*i*)
|
||||
# This shell is interactive, if not ignore this part
|
||||
# If printing this in non-interactive shells, it'll may prevent scp to work
|
||||
if [ -z "${IN_NIX_SHELL}" ]; then
|
||||
if [ -d "/etc/nixos" ]; then
|
||||
changes=$(git -C /etc/nixos status --porcelain | wc -l)
|
||||
if [ "$changes" -gt 0 ]; then
|
||||
printf '\e[01;31m\n' >&2
|
||||
printf '######################################\n' >&2
|
||||
printf '# NixOS-config-Repo is not commited! #\n' >&2
|
||||
printf '######################################\n' >&2
|
||||
printf '\e[0m\n' >&2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue