diff options
Diffstat (limited to 'utopia-documents.sh')
-rw-r--r-- | utopia-documents.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utopia-documents.sh b/utopia-documents.sh new file mode 100644 index 000000000000..4ca9352ec91e --- /dev/null +++ b/utopia-documents.sh @@ -0,0 +1,13 @@ +# By Jinxuan Zhu, <zhujinxuan@gmail.com>, Snow @ AUR +# Based on autojump.sh + +shell=`echo ${SHELL} | awk -F/ '{ print $NF }'` + +# prevent circular loop for sh shells +if [ "${shell}" = "sh" ] ; then + return 0 +elif [ -s ~/.utopia-documents/etc/profile.d/utopia-documents.${shell} ]; then + source ~/.utopia-documents/etc/profile.d/utopia-documents.${shell} +elif [ -s /etc/profile.d/utopia-documents.${shell} ]; then + source /etc/profile.d/utopia-documents.${shell} +fi |