X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fupdate;h=0321d45da66f315db8fa842f4752d5dcb03aac60;hb=57600e32012ce55c030a1db99d6d3f9e2c772e04;hp=453a6e59e73e62d5affa37db85a2ec90fa445dd9;hpb=32a0f89bc0eea5252e432f626d16b7ecdddcc97f;p=dotfiles.git diff --git a/shell/.local/bin/update b/shell/.local/bin/update index 453a6e5..0321d45 100755 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -1,5 +1,7 @@ #!/bin/sh -NUL='>/dev/null 2>&1' +NUL=">/dev/null 2>&1" + +vdirsyncer sync cmd() { echo -n 'apt-get update && apt-get dist-upgrade && ' @@ -7,4 +9,11 @@ cmd() { } sudo sh -c "$(cmd)" -sh -c "tlmgr update --all --self && offlineimap -o -u ttyui && khal $NUL && khard $NUL && pass git pull origin master" +tlmgr update --self && tlmgr update --all +eval "khal calendar $NUL" +eval "khard $NUL" +pass git pull origin master +if ! tmux list-sessions +then + tmuxmail +fi