}
-# RUN COMMANDS
-
-# If not already in screen reattach to a running session or create a new one.
-#
-# screen* is necessary as `screen` uses screen.linux for example for a linux
-# console which would otherwise cause an infinite loop.
-if [[ $TERM != screen* && $TERM != 'dumb' ]]; then
- # Get running detached sessions.
- session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')
- # Create a new session if none is running.
- if [[ -z $session ]]; then
- screen
- # Reattach to a running session.
- else
- screen -r $session
- fi
-fi
-
-
# OS SPECIFIC SETTINGS
if [[ $(uname) == Linux ]]; then
fi
+# LOAD ADDITIONAL CONFIGURATION FILES
+
# Load rc file for current hostname (first part before a dot) or rc.local.
source_config ~/.zsh host rc ${$(hostname)//.*/}
+
+# RUN COMMANDS
+
+# If not already in screen reattach to a running session or create a new one.
+#
+# screen* is necessary as `screen` uses screen.linux for example for a linux
+# console which would otherwise cause an infinite loop.
+if [[ $TERM != screen* && $TERM != 'dumb' ]]; then
+ # Get running detached sessions.
+ session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')
+ # Create a new session if none is running.
+ if [[ -z $session ]]; then
+ screen
+ # Reattach to a running session.
+ else
+ screen -r $session
+ fi
+fi
+
+
source_debug "finished sourcing ~/.zsh/rc"
# vim: ft=zsh