# global env.local.
source_config ~/.shell "" env $host
-# Load rc file for current OS.
-source_config ~/.zsh os env $(uname) nolocal
# Load env file for current hostname (first part before a dot) or env.local.
source_config ~/.zsh host env $host
+++ /dev/null
-# Zsh configuration file for darwin computers (Mac OS X).
-
-
-# Store the current clipboard in CLIPBOARD before every command so it can be
-# used in commands.
-os_darwin_preexec() {
- export CLIPBOARD="$(pbpaste)"
-}
-# Add the function as preexec hook.
-add-zsh-hook preexec os_darwin_preexec
-
-# Initialize CLIPBOARD so it's available for completion directly after
-# startup.
-CLIPBOARD=""
-export CLIPBOARD
-
-# Fetch current URL in clipboard with wget.
-alias wnc='wget --no-proxy $CLIPBOARD'
-
-# vim: ft=zsh
+++ /dev/null
-# Zsh configuration file for Linux computers.
-
-
-# Settings when creating Debian packages.
-DEBEMAIL=simon@ruderich.org
-export DEBEMAIL
-DEBFULLNAME="Simon Ruderich"
-export DEBFULLNAME
-
-# vim: ft=zsh
fi
-# Load rc file for current OS.
-source_config ~/.zsh os rc $(uname) nolocal
+# OS SPECIFIC SETTINGS
+
+if [[ $(uname) == Linux ]]; then
+ # Settings to create Debian packages.
+ DEBEMAIL=simon@ruderich.org
+ export DEBEMAIL
+ DEBFULLNAME="Simon Ruderich"
+ export DEBFULLNAME
+
+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() {
+ export CLIPBOARD="$(pbpaste)"
+ }
+ # Add the function as preexec hook.
+ add-zsh-hook preexec os_darwin_preexec
+
+ # Initialize CLIPBOARD so it's available for completion directly after
+ # startup.
+ CLIPBOARD=""
+ export CLIPBOARD
+
+ # Fetch current URL in clipboard with wget.
+ alias wnc='wget --no-proxy $CLIPBOARD'
+fi
+
+
# Load rc file for current hostname (first part before a dot) or rc.local.
source_config ~/.zsh host rc ${$(hostname)//.*/}