Important
You need to install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
[!NOTE] Pre-requisite for 🐧 Linux (WSL)
# You must install essential C Compilers
sudo apt-get update && sudo apt-get install build-essential
# Install dotnet6 or dotnet7
sudo apt update && sudo apt install dotnet7
git clone https://github.com/chris542/ckVim ~/.vim
[!WARNING] This will override your .vimrc file
. ~/.vim/install.sh
. ~/.vim/install_others.sh
Note
- Open "Turn Windows features on or off"
- Find Hyper-V and enable it (This may require rebooting your comptuer)
- Manually download the FiraCode.zip from here
- Configure the Terminal configuration with the font
brew install zsh
# Set zsh as default
chsh -s $(which zsh)
[!WARNING] This will create a new
.zshrc
and back up your old one.
zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1
[!WARNING] This will override your .zshrc file
rm $HOME/.zshrc
ln -s $HOME/.vim/.zshrc $HOME/.zshrc
source $HOME/.zshrc
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
- zsh compinit: insecure directories, run compaudit for list, run :
compaudit | xargs chmod g-w
- If you get a prompt that brew is missing after installation, simply run this command
# 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)"]
- If you get python issue on nvim install pynvim
$(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
- For WSL windows, install win32yank with choco to yank into clipboard
choco install win32yank
- 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