Opinionated setup I use on my machine for things like terminal and dot files like .zshrc
.
- git
- vscode
# clone dotfiles repo locally
cd ~
mkdir -p ~/code/p
cd ~/code/p
git clone https://github.com/ChrisTowles/dotfiles.git
cd dotfiles
# make symbolic link for .zshrc
cd ~/
mv .zshrc .zshrc.old
ln -s $HOME/code/p/dotfiles/.zshrc $HOME/.zshrc
# create a per machine only file, Also I also use this to load additional scripts from a private repo.
touch $HOME/.zshrc_local
# switch back to previous .zshrc file
rm ~/.zshrc
mv ~/.zshrc.old ~/.zshrc
- .zshrc
- oh my zsh
- spaceship-prompt
- zsh-autosuggestions
- zsh-syntax-highlighting
- zsh-z - each switch common directories
- nvm - use multiple versions of node
- pnpm - fast node manager with monorepos support.
- antfu/ni - use the right package manager
Mac - xcode
# If you get a path back (like /Applications/Xcode.app/Contents/Developer) then you're good to go
xcode-select -p
# Otherwise to install
xcode-select --install
- brew
# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew doctor
brew update
-
git
-
brew install git
-
-
zsh
-
brew install zsh # change default shell to zsh chsh -s /usr/local/bin/zsh
-
-
Iterm2
-
# install iterm2 brew install iterm2 --cask
-
-
-
# install oh my zsh sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
-
Nerd Fonts
-
# install nerd fonts brew tap homebrew/cask-fonts brew install --cask font-hack-nerd-font
- Now in iterm2 go to
Preferences > Profiles > Text
and set the font toHack Nerd Font
-
-
Monosnap
-
Clipboard manager
- Copyq - clipboard manager (linux)
- setup autostart and keybinding
- maccy - tried as alternative to copyq after issues with it locking up when pasting.
- Copyq - clipboard manager (linux)
-
Magnet - window manager
-
vscode insiders - make "code" as open "code-insiders" that other apps can pickup instead of a bash alias.
cd /usr/local/bin
ls
sudo unlink code
sudo ln -s "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code" code
Look into Powerlevel10k vs Spaceship. Currently, using Spaceship and loving it.
- Copyq
- WSL
- Ditto clipborard manager
- ninite
So I have a private repo I've been using to backup my .zshrc
and other common scripts but recently when rebuilding my home computer I thought I copy Anthony Fu and his dotfiles repo and made mine public.