CLI – All about

ohmyzsh

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

the-ultimate-guide-to-your-terminal

How to kill a process?

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ lsof -i tcp:5000
COMMAND PID ...
node 5119 ...
$ kill -9 5119
$ lsof -i tcp:5000 COMMAND PID ... node 5119 ... $ kill -9 5119
$ 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.


*