diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/directories | 4 | ||||
-rw-r--r-- | etc/functions/xexport | 4 | ||||
-rw-r--r-- | etc/functions/xsource (renamed from etc/functions/esource) | 0 | ||||
-rw-r--r-- | etc/rc | 6 |
4 files changed, 9 insertions, 5 deletions
diff --git a/etc/directories b/etc/directories index 8fb5985..fa46ded 100644 --- a/etc/directories +++ b/etc/directories @@ -19,5 +19,5 @@ case `hostname` in hash -d lyrics=$HOME/packages/lyrics esac -[[ -n $vcs ]] && export vcs -[[ -n $lyrics ]] && export lyrics +xexport vcs +xexport lyrics diff --git a/etc/functions/xexport b/etc/functions/xexport new file mode 100644 index 0000000..6c9235b --- /dev/null +++ b/etc/functions/xexport @@ -0,0 +1,4 @@ +## vim:ft=zsh +if [[ -n $1 ]] { + export $1 +} diff --git a/etc/functions/esource b/etc/functions/xsource index ff01ab4..ff01ab4 100644 --- a/etc/functions/esource +++ b/etc/functions/xsource @@ -25,9 +25,9 @@ source $ZDIR/alias/font source $ZDIR/alias/default source $ZDIR/alias/global source $ZDIR/alias/short -esource $ZDIR/../provided/includes -esource $ZDIR/local -esource $HOME/var/tmp/envstore-raw-$UID +xsource $ZDIR/../provided/includes +xsource $ZDIR/local +xsource $HOME/var/tmp/envstore-raw-$UID source $ZDIR/completion ## misc |