Store current clipboard in $CLIPBOARD for easy access.
# 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.
+preexec () {
+ export CLIPBOARD="$(pbpaste)"
+}
+# Initialize CLIPBOARD so it's available for completion directly after
+# startup.
+CLIPBOARD=""
+export CLIPBOARD
}
+# Load rc file for current OS.
+source_config ~/.zsh os rc $(uname) nolocal
# Load rc file for current hostname (first part before a dot) or rc.local.
source_config ~/.zsh host rc ${$(hostname)//.*/}