From e88bcead0b83f3d5bf2507f971e5c9d27417c9fc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 23 Apr 2010 12:26:48 +0200 Subject: [PATCH] zsh/rc: Only call uname once. --- zsh/rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() { -- 2.45.2