dotfiles/install.sh

17 lines
293 B
Bash
Raw Normal View History

2018-02-24 08:53:58 +00:00
#!/usr/bin/env bash
2018-08-23 09:40:09 +00:00
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