Fix .zshrc repo path and add script/security-updates-check.sh
This commit is contained in:
parent
8203a7ef46
commit
2365836158
5
.zshrc
5
.zshrc
@ -95,4 +95,7 @@ source $ZSH/oh-my-zsh.sh
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
|
||||
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
|
||||
alias dotgit='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
|
||||
|
||||
EDITOR=/usr/bin/nano
|
||||
VISUAL=$EDITOR
|
||||
|
9
scripts/security-updates-check.sh
Executable file
9
scripts/security-updates-check.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
echo "hi"
|
||||
|
||||
UPDATES=$(arch-audit --upgradable | sed "{s/\n/<br>/g}")
|
||||
echo $UPDATES
|
||||
|
||||
if [ ! -z "$UPDATES" ]; then
|
||||
sudo -u arisu DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -u critical -t 86400000 -i update-high "Security updates are available" "$UPDATES"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user