[M] Update include folder structure
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
|
||||
# Veracross Analyzer
|
||||
alias va-restart='sctl restart va'
|
||||
alias va-log-all='jctl -u va --output cat'
|
||||
alias va-log='va-log-all -f'
|
||||
@@ -0,0 +1,6 @@
|
||||
if command -v pacman &> /dev/null; then
|
||||
alias install='pacman -S'
|
||||
alias uninstall='pacman -Rsn'
|
||||
alias listunused='pacman -Qdtq'
|
||||
alias aurinst='yay -S'
|
||||
fi
|
||||
@@ -0,0 +1,16 @@
|
||||
# Git commit wrapper
|
||||
commit() {
|
||||
msg="$@"
|
||||
git commit -m "$msg"
|
||||
}
|
||||
|
||||
commitall() {
|
||||
git add .
|
||||
commit "$@"
|
||||
}
|
||||
alias commita="commitall"
|
||||
|
||||
compush() {
|
||||
commitall "$@"
|
||||
git push
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
alias rebuild="nixos-rebuild switch"
|
||||
alias gc="nix-collect-garbage -d"
|
||||
alias rebuild-gc="rebuild; gc"
|
||||
|
||||
# Update git
|
||||
nix-git-update() {
|
||||
pushd /etc/nixos
|
||||
|
||||
# Make sure there aren't any other changes
|
||||
if git diff-index --quiet HEAD --; then
|
||||
# No changes
|
||||
update-nix-fetchgit *.nix
|
||||
|
||||
# If there are changes after updating
|
||||
if ! git diff-index --quiet HEAD --; then
|
||||
# Has changes
|
||||
rebuild-gc
|
||||
git add *.nix
|
||||
git commit -m "[U] Update fetchgit refs"
|
||||
git push
|
||||
echo "Successfully updated fetchgit refs"
|
||||
else
|
||||
echo "There aren't any updates"
|
||||
fi
|
||||
else
|
||||
# Changes
|
||||
echo "Error: There are uncommitted changes"
|
||||
git status
|
||||
fi
|
||||
|
||||
popd
|
||||
}
|
||||
Reference in New Issue
Block a user