chore(setup): update .zshenv with script directory path
This commit is contained in:
3
setup
3
setup
@ -20,6 +20,9 @@ echo "[+] Creating symlinks..."
|
|||||||
|
|
||||||
if [ ! -f "$PWD/.zshenv" ]; then
|
if [ ! -f "$PWD/.zshenv" ]; then
|
||||||
cp "$PWD/.zshenv.template" "$PWD/.zshenv"
|
cp "$PWD/.zshenv.template" "$PWD/.zshenv"
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
sed -i "s|^export DOTFILES_INSTALL_DIR=.*|export DOTFILES_INSTALL_DIR=${SCRIPT_DIR}|" .zshenv
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stow .
|
stow .
|
||||||
|
Reference in New Issue
Block a user