From 2365836158f8e09e3479f77572343a234650214c Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Wed, 1 May 2019 01:45:27 +0200 Subject: [PATCH] Fix .zshrc repo path and add script/security-updates-check.sh --- .zshrc | 5 ++++- scripts/security-updates-check.sh | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 scripts/security-updates-check.sh diff --git a/.zshrc b/.zshrc index ceac1f3..8b6af7d 100644 --- a/.zshrc +++ b/.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 diff --git a/scripts/security-updates-check.sh b/scripts/security-updates-check.sh new file mode 100755 index 0000000..f150216 --- /dev/null +++ b/scripts/security-updates-check.sh @@ -0,0 +1,9 @@ +#!/bin/sh +echo "hi" + +UPDATES=$(arch-audit --upgradable | sed "{s/\n/
/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