summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2013-05-12 17:40:53 -0400
committerJune McEnroe <programble@gmail.com>2013-05-12 17:40:53 -0400
commitc5cf1887c8e23da8eb27fe56afa7b2bb33cd6b38 (patch)
tree5fd157a61feb8b1aa6a2d366f6385323913d590f
parentAdd mplayer configuration (diff)
downloadsrc-c5cf1887c8e23da8eb27fe56afa7b2bb33cd6b38.tar.gz
src-c5cf1887c8e23da8eb27fe56afa7b2bb33cd6b38.zip
Only run pacman on zsh start if it exists
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index b2173be4..0003316a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -134,5 +134,5 @@ alias gt='git tag'
 alias gu='git pull'
 
 # Update all the time!
-/usr/bin/pacman -Qu > /dev/null && [ ! -f /var/lib/pacman/db.lck ] && pacman -Syu
+[ -f /usr/bin/pacman ] && /usr/bin/pacman -Qu > /dev/null && [ ! -f /var/lib/pacman/db.lck ] && pacman -Syu
 true