mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
16 lines
293 B
Bash
Executable file
16 lines
293 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
ZSHRC=~/.zshrc
|
|
ZSHRC_BACKUP=~/.zshrc.pre-dmitmel-dotfiles
|
|
|
|
if [[ -f $ZSHRC ]]; then
|
|
echo "Backing up $ZSHRC to $ZSHRC_BACKUP"
|
|
mv $ZSHRC $ZSHRC_BACKUP
|
|
fi
|
|
|
|
cat > $ZSHRC <<EOF
|
|
#!/usr/bin/env zsh
|
|
|
|
export DOTFILES_PATH="\$HOME/.dotfiles"
|
|
source "\$DOTFILES_PATH/zshrc"
|
|
EOF
|