+# OS SPECIFIC SETTINGS
+
+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
+ # 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
+
+