shell/zsh: more flexible ZDOTDIR in system zshenv
This commit is contained in:
parent
ff3cfca0f5
commit
64aad58d58
|
@ -18,7 +18,7 @@ install() {
|
||||||
|
|
||||||
local zsh="$(which zsh)"
|
local zsh="$(which zsh)"
|
||||||
grep $zsh /etc/shells &>/dev/null || sudo tee -a /etc/shells <<<$zsh
|
grep $zsh /etc/shells &>/dev/null || sudo tee -a /etc/shells <<<$zsh
|
||||||
sudo tee $zshenv <<<"export ZDOTDIR='$ZDOTDIR'"
|
sudo tee $zshenv <<<"export ZDOTDIR=\"${ZDOTDIR/$HOME/\$HOME}\""
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
|
|
Loading…
Reference in a new issue