Installing
source: https://ohmyz.sh/#install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Plugins
zsh-autosuggestions
source: https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
cd ~/.oh-my-zsh/custom/plugins
git clone
[https://github.com/zsh-users/zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- add the plugin in
~/.zshrc
:
plugins=(
# other plugins...
zsh-autosuggestions
)
zsh-syntax-highlighting
source: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
cd ~/.oh-my-zsh/custom/plugins
git clone
[https://github.com/zsh-users/zsh-syntax-highlighting.git](https://github.com/zsh-users/zsh-syntax-highlighting.git)
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- add the plugin in
~/.zshrc
:
plugins=(
# other plugins...
zsh-syntax-highlighting
)
Aliases
Create or edit ~/.oh-my-zsh/custom/aliases.zsh
and add this:
alias ll='ls -lArth'
alias gg='git status'
alias ggg='git status .'
alias gf='git fetch -p'
function gkill() {git fetch -p && for branch in $(git branch -vv | grep ': disparue]' | awk '{print $1}'); do git branch -D $branch; done}
alias please='git push origin --force-with-lease'
alias jsCount='find . -name \*.js -not -path \*/\.\* | wc -l'
alias tsCount='find . -name \*.ts -not -path \*/\.\* | wc -l'
alias bb='brew update; brew upgrade; brew cleanup'