Skip to content

loeiten/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

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

Setup git

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]

Install conda

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.sh

Make iTerm behave

Setup dracula Setup sensible navigation

Get rid of the long hold function

defaults write -g ApplePressAndHoldEnabled -bool false

Log out, then log in

Copy over the dotfiles

cd $HOME
mkdir repos
cd repos
git clone [email protected]:loeiten/dotfiles.git
python makeSymlinks

Setup OhMyZsh

# 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 configure

Setup vim

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall

Setup VSCode

Install vscode

git clone https://github.com/dracula/visual-studio-code.git ~/.vscode/extensions/theme-dracula
cd ~/.vscode/extensions/theme-dracula
npm install
npm run build

Login!

Get vimrc mappings

About

Collection of dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published