/dotfiles

dotfiles

Primary LanguageEmacs Lisp

Dotfiles?

Not purely a .dotfiles repo.
I just try to keep here my notes & configs to setup / share things between machines...

Shell

Prezto

chsh -s /bin/zsh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# symlinks created
~/.zlogin
~/.zlogout
~/.zpreztorc
~/.zprofile
~/.zshenv
~/.zshrc

Homebrew

xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Sync VAULT data (optional)

hdiutil mount ~/Drive/My\ Drive/Jonas/access/VAULT.dmg
rsync -av /Volumes/VAULT/ohrstrom/.ssh/ ~/.ssh/

Dotfiles

git clone git@github.com:ohrstrom/dotfiles.git ~/dotfiles
cd ~/dotfiles

# link config files
# zsh / prezto
rm ~/.zshrc
rm ~/.zpreztorc
ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.zpreztorc ~/.zpreztorc

# tools etc
ln -s ~/dotfiles/.iterm2 ~/.iterm2
ln -s ~/dotfiles/.spacemacs ~/.spacemacs

# Apply macos system settings
./macos-settings.sh

Code Workspace

mkdir ~/Documents/Code
ln -s ~/Documents/Code ~/code

Development Tooling

Python

# pyenv
brew install pyenv
pyenv install --list

pyenv install 3.9.7

# poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

Node.js

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

nvm install v12.18.1
npm install -g yarn

Cloud & Co

# gcp
curl https://sdk.cloud.google.com | bash
exec -l $SHELL

gcloud init

# heroku
brew tap heroku/brew
brew install heroku

heroku login

# aws
pip install --user awscli
pip install --user s3cmd

aws configure

# azure
brew install azure-cli

az login

Apllications

brew install wget
wget https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg
hdiutil mount GoogleDriveFileStream.dmg
sudo installer -pkg /Volumes/Install\ Google\ Drive\ File\ Stream/GoogleDriveFileStream.pkg -target "/Volumes/SSD"
hdiutil unmount /Volumes/Install\ Google\ Drive\ File\ Stream/
brew install mplayershell

Dev & co

brew install redis
brew services start redis

emacs / spacemacs

brew tap d12frosted/emacs-plus
# brew install emacs-plus
brew install emacs-plus@27 --HEAD --without-cocoa
brew link emacs-plus@27

# optional
brew services start d12frosted/emacs-plus/emacs-plus@27
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d