git clone https://github.com/BABA983/dotfiles.git ~/dotfiles
git pull --rebase && git submodule update --init --recursive
sh install-zsh.sh
sh install-tmux.sh
sh install-gitconfig.shtmux eza fzf thefuck difftastic ripgrep zoxide
# install zsh(optional)
sudo apt install zsh
chsh -s $(which zsh)
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install theme
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
# install zsh plugins
curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode --depth=1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions --depth=1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting --depth=1
git clone https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-autocomplete --depth=1
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting --depth=1
git clone https://github.com/zsh-users/zsh-completions.git ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions --depth=1/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install tmux
# brew install tmuxinator tmuxinator-completion
brew install eza fzf tmux
brew install --cask alacritty
brew install --cask wezterm
brew install --cask karabiner-elements
brew install --cask firefox
curl -s https://cht.sh/:cht.sh | sudo tee /usr/local/bin/cht.sh && sudo chmod +x /usr/local/bin/cht.sh# System Preferences » Keyboard » Key Repeat/Delay Until Repeat
# https://gist.github.com/hofmannsven/ff21749b0e6afc50da458bebbd9989c5
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
# disable press and hold for special characters
defaults write -g ApplePressAndHoldEnabled -bool falsedefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.desktopservices DSDontWriteStores -bool trueShow hidden files
defaults write com.apple.finder AppleShowAllFiles -bool true
```bash
#### keyboard shortcuts
- input source: `Control + Space` which will conflict with vscode
- function keys: as standard function keys
#### CapsLock
```bash
hidutil property --set '{"CapsLockDelayOverride":0}'https://gist.github.com/rxliuli/629da07479b70d6235088828cdb1bd8f
You may need to delete the permissions and add them again, use the terminal input the following command to reset the permissions
tccutil reset All pl.maketheweb.cleanshotx
# setup proxy in WSL
export ALL_PROXY="http://$(get-wsl-host-ip):7890"
# install neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
# install Lazyvim
git clone git@github.com:BABA983/Lazyvim.git ~/.config/nvim