summarylogtreecommitdiffstats
path: root/utopia-documents.sh
blob: 4ca9352ec91e51c33bc75562b76b3d755b2a7bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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