All my settings, plugins, and colour schemes that I have found on the Internet can be found here. Take what you want! Hopefully you can find something useful in there somewhere.
Follow relevant instructions from top to bottom
- Install homebrew
- Run the printed out command to load brew in the current shell (
eval ...
or something) - Install packages
# Main packages brew install git antigen asdf neovim fzf tmux diff-so-fancy bat ripgrep entr bottom lf # UI brew install google-chrome alfred slack rectangle maccy spotify discord # Mac-specific brew install reattach-to-user-namespace trash fd
- Close terminal and open app
Kitty
- Generate your SSH key for git and set on your Git hosting service
- Follow relevant steps from the
If using Ubuntu or WSL+Ubuntu
section for setting up the rest of stuff
-
WSL Setup
- Install WSL
- Set the default shell to be Ubuntu, not PowerShell
- Install Git inside WSL
- Also make sure you're running the [https://git-scm.com/download/linux](latest version of git inside WSL)
-
Generate your SSH key for git (on the host) and set on your Git hosting service
-
(WSL only) Copy the SSH keys to WSL and change permissions
cp -r /mnt/c/Users/DylanChong/.ssh .ssh/ chown -R $USER .ssh chmod 700 .ssh chmod 600 .ssh/*
-
Install snap TODO remove?
-
Install packages that need manual installing, e.g., neovim
brex_install_upgrade
-
Install packages - roughly the same ones from list of Main package from the mac section above
sudo apt-get install zsh zsh-antigen python3 python3-pip build-essential bat lf tmux ripgrep fd-find sudo snap install bottom diff-so-fancy # TODO
-
(Ubuntu Wayland only)
sudo apt install wl-clipboard
-
(WSL only) Install wslu
-
Set default shell to zsh
chsh --shell $(which zsh)
- Restart your computer to apply
- Clone and configure git
cd ~ git clone [email protected]:dylan-chong/dotfiles.git cd dotfiles git config core.worktree ~ git config status.showUntrackedFiles no
- Move the contents of
dotfiles
into~
(except.git
)cd ~ # Note `mv -t` errors for directories, so do the git checkout steps below to move those rm -r ~/dotfiles/.config/ git checkout ../config # This doesn't delete existing files in ~/.config ls -A dotfiles | grep -v '^.git$' | while read -r content; do mv dotfiles/"$content" -t ~; done cd ~/dotfiles
- Merge the
~/.gitconfig.example
into your~/.gitconfig
- Also update any
AAAAAA
spots
- Also update any
- Clone
gprq
- Run
cp ~/.zshrc_private.example ~/.zshrc_private
- Also update any
AAAAAA
spots
- Also update any
- Download asdf from https://asdf-vm.com/guide/getting-started.html#_2-download-asdf
- Install asdf plugins
cd ~ asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git asdf install nodejs
- Ignore warnings about plugins not being installed if you don't want to use those
- Install rustup using the default options
- Run installation steps
- Let it install dependencies except
neovim
andtree-sitter-cli
are not needed
- Let it install dependencies except
- If pynvim didn't install, run:
- (Ubuntu / WSL Ubuntu):
sudo apt install python3-pynvim sudo apt remove neovim
- Mac: Probably the same as the above but with brew.
- (Ubuntu / WSL Ubuntu):
- fix telescope f to open file, appears to delete current wintabs buffer (rather than adding a new one)
- move keybinds into which-key declaration
- Install vim-plug
- Create shortcut for nvim directory
ln -s ~/.vim ~/.config/nvim
- Open
vi
, run:PlugInstall
- Run
:checkhealth
- Close vim
- Install Tmux Plugin Manager
- Open
tmux
and pressCTRL-s I
to install plugins
- Set terminal theme by running
base16_material-palenight
- Install the Fira Code font (not Fira Mono)
- This will be applied automatically if using Kitty, otherwise set this as your terminal font manually
- Restart your terminal to check it applies