mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-28 03:13:03 +01:00
feat(otp): honour OTP_HOME and XDG_DATA_HOME (#12953)
This commit is contained in:
1 parent
fa82d8a3eb
commit
b6830a53d5
2 files changed
+10
-2
No files matched your search
@@ -1,4 +1,10 @@
|
||||
export OTP_HOME=~/.otp
|
||||
if [[ -z "$OTP_HOME" ]]; then
|
||||
if [[ ! -d "$HOME/.otp" ]] && [[ -n "$XDG_DATA_HOME" ]]; then
|
||||
export OTP_HOME="$XDG_DATA_HOME/otp"
|
||||
else
|
||||
export OTP_HOME=~/.otp
|
||||
fi
|
||||
fi
|
||||
mkdir -p $OTP_HOME
|
||||
|
||||
function ot () {
|
||||
|
||||
Reference in new issue
Block a user