Skip to content

Instantly share code, notes, and snippets.

View AntonClaesson's full-sized avatar
🎯
Focusing

Anton Claesson AntonClaesson

🎯
Focusing
  • InnoTact Software AB
  • Gothenburg
View GitHub Profile
@AntonClaesson
AntonClaesson / install-dotfiles.sh
Last active February 15, 2024 13:12
install-dotfiles
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.";
@AntonClaesson
AntonClaesson / setup-linux-curl.sh
Last active February 15, 2024 17:11
setup-linux-curl
# 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
@AntonClaesson
AntonClaesson / setup-linux-wget.sh
Last active February 15, 2024 17:10
setup-linux-wget
# 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