๐บ Please support me: Although all my software is free, it is always appreciated if you can support my efforts on Github with a contribution via Paypal - this allows me to write cool projects like this in my personal time and hopefully help you or your business.
Using powerlevel10k on iTerm2 with OhMyZsh with plugins:
See my dotfiles as a reference.
The most popular package manager for macOS is called Homebrew, or brew for short. We will use it to install the rest.
First we need to install CLI tools for Xcode. Open a terminal and run this command:
xcode-select โ-install
To install brew you simply open a terminal and paste this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
You can download the app manually from the iTerm2 website or you can save yourself some trouble by using cask which helps you install apps from the command line. Open your terminal and write the following commands:
brew install cask
brew cask install iterm2
- Download the fonts and install in iTerm.
- Download the iTerm theme iTerm-material-bright.itermcolors and select it in iTerm
Install it by opening iTerm and write the command:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
zsh-autosuggestions is a great plugin that will suggest auto completions based on what you type.
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
zsh-completion aims at gathering/developing new completion scripts that are not available in Zsh yet
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
zsh-syntax-highlighting provides syntax highlighting for the shell zsh. It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Next, edit your ~/.zshrc file to activate it. Add the plugins to the list of plugins:
plugins=(evalcache zsh-nvm osx git npm zsh-autosuggestions zsh-completions zsh-syntax-highlighting sublime)
Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Next, edit your ~/.zshrc file to activate it. Adjust the THEME-setting:
ZSH_THEME="powerlevel10k/powerlevel10k"
Open a new terminal tab and if the powerlevel10k setup does not start, run it manually:
p10k configure
fzf is a general-purpose command-line fuzzy finder. It's an interactive Unix filter for command-line that can be used with any list; files, command history, processes, hostnames, bookmarks, git commits, etc. Activate it with CTRL+R:
brew install fzf
Install the keybindings and completion
/usr/local/opt/fzf/install
Update your .zshrc:
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
forgit is an utility tool for using git interactively. This tool is designed to help you use git more efficiently. It's lightweight and easy to use.
Install via Cloning into plugins:
git clone https://github.com/wfxr/forgit ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/forgit
Source via .zshrc:
[ -f ~/.oh-my-zsh/custom/plugins/forgit/forgit.plugin.zsh ] && source ~/.oh-my-zsh/custom/plugins/forgit/forgit.plugin.zsh
git-delta aims to make this both efficient and enjoyable: it allows you to make extensive changes to the layout and styling of diffs, as well as allowing you to stay arbitrarily close to the default git/diff output.
Install via brew (we also install less
as the Mac default less does not support proper scrolling):
brew install git-delta less
Adjust your git global via git config --global -e
:
...
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
features = side-by-side line-numbers decorations
syntax-theme = Monokai Extended
line-numbers = true
plus-color = "#012800"
minus-color = "#340001"
side-by-side = false
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
...
๐บ Please support me: If the above helped you in any way, then follow me on Twitter or send me some coins:
(CRO) 0xBAdB43af444055c4031B79a76F74895469BA0CD7 (Cronos)
(USDC) 0xBAdB43af444055c4031B79a76F74895469BA0CD7
(BTC) 3HHfNs25Gzfphh3s81rvqRrKysZqogW8B6
(ETH) 0xBAdB43af444055c4031B79a76F74895469BA0CD7
(Ripple) rKNwXQh9GMjaU8uTqKLECsqyib47g5dMvo (Tag: 2464166834)
(BNB) 0xfc316ba7d8dc325250f1adfafafc320ad75d87c0 (BEP20)
Crypto.com PayString: magicdude$paystring.crypto.com
Go to Curve.com to add your Crypto.com card to ApplePay and signup to Crypto.com for a staking and free Crypto debit card.
Use Binance Exchange to trade #altcoins. I also accept old-school PayPal.
If you have no crypto, follow me at least on Twitter.