BlinkenArea - GitList
Repositories
Blog
Wiki
uproctrace
Code
Commits
Branches
Tags
Search
Tree:
b3abe7d
Branches
Tags
master
uproctrace
exports
add ZSH support to "exports"
Stefan Schuermans
commited
b3abe7d
at 2020-08-10 17:59:07
exports
Blame
History
Raw
if [[ -v BASH_VERSION ]] then export UPT_HOME="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")" elif [[ -v ZSH_VERSION ]] then export UPT_HOME="$(readlink -f "$(dirname "${(%):-%x}")")" else echo "Unsupported shell, only bash and zsh are supported." >&2 return 2 fi export PATH="$UPT_HOME/bin${PATH:+:${PATH}}"