Warning: Don’t blindly use my settings unless you know what that entails. Use at your own risk!
- .gitconfig
- .p10k.zsh (powerlevel10k)
- .zshrc (oh-my-zsh)
- ITerm2
- itermcolors
- itermkeymap
- profile
- VS Code settings
Step 1 — Install ITerm2
chsh -s $(which zsh)
Enter the password and it will change the shell, upon logout and login.
Install “Oh My ZSH”
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Install Powerline fonts
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
Install ZSH-AutoSuggestion plugin
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
Install fzf plugin
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
Install switch-git
git clone https://github.com/robin-mbg/switch-git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/switch-git
Install powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Replace .zshrc
Update ZSH config
source ~/.zshrc
Import gruvbox-dark.itermcolors
, iterm-profile.json
and iterm-keys.itermkeymap
into Iterm
Replace settings.json
and install the following extensions:
- Auto Close Tag
- Auto Rename Tag
- ESLint
- Frontend Snippets
- Gruvbox Theme
- Import Cost
- Material Icon Theme
- Sort lines
- Template String Converter
- Turbo Console Log
I've configured git
with some useful aliases such as:
git br
- lists all branches sorted by last time updatedgit co
-git checkout
git lg
- prettiergit log
git puf
-git push origin head -f
git ref
- prettiergit reflog
git undo
-git reset head~1
(it also accepts a parameter for the number of commits to undo, e.g.:git undo 2
)- and many more! Check them at
.gitconfig
.
Also there's an alias for quickly switching between branches using switch-git
plugin. It is triggered simply typing z
and a word that related to the branch name. E.g.: z products
is the equivalent to git checkout products
. It comes up extremelly handy specially when the branch has a long name or when we've working on different branches.
At last, fzf
is a plugin which provides the useful feature of listing recent commands. You can run it by pressing Ctrl + R
.