Originally used for only dotfiles. Now also used to setup new macs.
Start with downloading iterm, so that we have something sensible to work from
read -p "Enter full name: " NAME
read -p "Enter mail: " MAIL
# Setup github ssh
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
ssh-keygen -t ed25519 -C "$MAIL"\n
eval "$(ssh-agent -s)"
touch ~/.ssh/config
cat >> ~/.ssh/config << 'EOF'
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
EOF
ssh-add --apple-use-keychain ~/.ssh/id_ed25519\n
git config --global user.name "$NAME"
git config --global user.email "$NAME"Test that the ssh key is working
pbcopy < ~/.ssh/id_ed25519.pub
# Copy the content into the ssh key on github
# The actual test
ssh -T [email protected]wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p $HOME/miniconda
conda install numpy scipy pandas pytorch matplotlib
rm miniconda.shSetup dracula Setup sensible navigation
Get rid of the long hold function
defaults write -g ApplePressAndHoldEnabled -bool falseLog out, then log in
cd $HOME
mkdir repos
cd repos
git clone [email protected]:loeiten/dotfiles.git
python makeSymlinks# Install OhMyZsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install vim npm powerlevel10k
# Install powerlevel10k
p10k configuregit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qallInstall vscode
git clone https://github.com/dracula/visual-studio-code.git ~/.vscode/extensions/theme-dracula
cd ~/.vscode/extensions/theme-dracula
npm install
npm run buildLogin!
Get vimrc mappings