CLI – All about

ohmyzsh

  • Installation
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • zsh-syntax-highlighting plugin plugin
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# ~/.zshrc
# Always put zsh-syntax-highlighting last
 
plugins=(git plugin1 plugin2 zsh-syntax-highlighting)
  • zsh-autosuggestions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# ~/.zshrc
 
plugins=(zsh-syntax-highlighting zsh-autosuggestions)
  • Start a new terminal
source ~/.zshrc

the-ultimate-guide-to-your-terminal

How to kill a process?

$ lsof -i tcp:5000

COMMAND  PID  ...
node     5119 ...

$ kill -9 5119

Be the first to comment

Leave a Reply

Your email address will not be published.


*