]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Only call uname once.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index c9138ed14d32938a71e59934249f9ac06ea9a336..ee2737b833a4c5976dc378119baa06872d882c0f 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -476,14 +476,16 @@ tig() {
 
 # OS SPECIFIC SETTINGS
 
-if [[ $(uname) == Linux ]]; then
+local uname=$(uname)
+
+if [[ $uname == Linux ]]; then
     # Settings when creating Debian packages.
     DEBEMAIL=simon@ruderich.org
     export DEBEMAIL
     DEBFULLNAME="Simon Ruderich"
     export DEBFULLNAME
 
-elif [[ $(uname) == Darwin ]]; then # Mac OS X
+elif [[ $uname == Darwin ]]; then # Mac OS X
     # Store the current clipboard in CLIPBOARD before every command so it can
     # be used in commands.
     os_darwin_preexec() {