summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--etc/functions/esource4
-rw-r--r--etc/rc5
3 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 63e9231..0201d3a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
provided
+etc/local
diff --git a/etc/functions/esource b/etc/functions/esource
new file mode 100644
index 0000000..ff01ab4
--- /dev/null
+++ b/etc/functions/esource
@@ -0,0 +1,4 @@
+## vim:ft=zsh
+if [[ -r $1 ]] {
+ source $1
+}
diff --git a/etc/rc b/etc/rc
index c0c41aa..5d73143 100644
--- a/etc/rc
+++ b/etc/rc
@@ -25,13 +25,14 @@ source $ZDIR/alias/font
source $ZDIR/alias/default
source $ZDIR/alias/global
source $ZDIR/alias/short
-source $ZDIR/../provided/includes
+esource $ZDIR/../provided/includes
+esource $ZDIR/local
+esource $HOME/var/tmp/envstore-raw-$UID
source $ZDIR/completion
## misc
bindkey -e
ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
-[[ -r $HOME/var/tmp/envstore-raw-$UID ]] && . $HOME/var/tmp/envstore-raw-$UID
mesg n
umask 077