From: Simon Ruderich Date: Fri, 23 Apr 2010 10:26:48 +0000 (+0200) Subject: zsh/rc: Only call uname once. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e88bcead0b83f3d5bf2507f971e5c9d27417c9fc;p=config%2Fdotfiles.git zsh/rc: Only call uname once. --- diff --git a/zsh/rc b/zsh/rc index c9138ed..ee2737b 100644 --- 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() {