Fix .zshrc repo path and add script/security-updates-check.sh

This commit is contained in:
Alice Gaudon 2019-05-01 01:45:27 +02:00
parent 8203a7ef46
commit 2365836158
2 changed files with 13 additions and 1 deletions

5
.zshrc
View File

@ -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

View 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