This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install deps | |
apt update && apt-get update | |
apt-get -y install git tmux vim | |
apt -y install zsh | |
# Select zsh as default shell | |
chsh -s $(which zsh) | |
# Install oh-my-zsh | |
sh -c "$(wget -O - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install deps | |
apt update && apt-get update | |
apt-get -y install git tmux vim | |
apt -y install zsh | |
# Select zsh as default shell | |
chsh -s $(which zsh) | |
# Install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --bare https://github.com/AntonClaesson/dotfiles.git $HOME/dotfiles | |
function config { | |
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup | |
config checkout | |
if [ $? = 0 ]; then | |
echo "Checked out config."; | |
else | |
echo "Backing up pre-existing dot files."; |