/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then source it depending on your environment.
# For Mac
eval "$(/usr/lib/bin/brew shellenv)"
# For Mac ARM
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> $HOME/.zprofile
# For WSL
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
git clone https://github.com/chris542/ckVim ~/.vim
Note
Pre-requisite for 🐧 Linux (WSL)
# You must install essential C Compilers
# Debian
sudo apt-get update && sudo apt-get install build-essential
# Archlinux (SteamOS especially)
sudo steamos-readoonly disable # enable once all packages are installed
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate holo
sudo pacman -Syu
sudo pacman -S linux-api-headers # If you see an error regards to stdint.h
Warning
This will override your .vimrc file
make vim
Note
Pre-requisite (only 🐧 For WSL/Linux)
Enabling Hyper V
- Open "Turn Windows features on or off"
- Find Hyper-V and enable it (This may require rebooting your computer)
Font Setup
- Manually download the FiraCode.zip from here
- Configure the Terminal configuration with the font
Warning
This will override your .zshrc file
make zsh
Now you can restart your terminal!
Run following command to configure your powerlevel10k theme.
Avoid sourcing ~/.p10k.zsh
as it is already imported in .zshrc
#alias p10
p10k configure
make others
- zsh compinit: insecure directories, run compaudit for list, run :
compaudit | xargs chmod g-w
- If you get node issue, install neovim via npm
npm install -g neovim
- If you get python issue, install pynvim via pip
$(which python3) -m pip install pynvim
- Update csharp_ls time to time
dotnet tool update -g csharp-ls
- If you get FNM Error 13 permission denied
sudo chown -R $(whoami) /run/user/1000/
- If you get "Cannot request projects v2, missing scope 'read:project'" message, it means the gh credential does not have read:project auth. Run this command:
gh auth refresh -s read:project
- WSL Clipboards
choco install win32yank
- Linux Clipboards
sudo pacman -S xsel
- For WSL windows, when you get
no such file or directory: /usr/share/zsh/vendor-completions/_docker
error, run:
# Remove symlink
sudo rm -rf /usr/share/zsh/vendor-completions/_docker
#copy over wsl completions
sudo cp /mnt/wsl/docker-desktop/cli-tools/usr/share/zsh/vendor-completions/_docker /usr/share/zsh/vendor-completions/
#make it non-writable
sudo chattr +i /usr/share/zsh/vendor-completions/_docker