summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2013-05-12 17:40:53 -0400
committerJune McEnroe <june@causal.agency>2013-05-12 17:40:53 -0400
commitf79c0fe5f4f1cd9ec98e8cf869c1ed6a07b35652 (patch)
treead0b4e3b8e0b872695894f6bdf0579929ac211d2
parentAdd mplayer configuration (diff)
downloadsrc-f79c0fe5f4f1cd9ec98e8cf869c1ed6a07b35652.tar.gz
src-f79c0fe5f4f1cd9ec98e8cf869c1ed6a07b35652.zip
Only run pacman on zsh start if it exists
Diffstat (limited to '')
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index e520b1c5..957786dc 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