How to create a custom alias in zsh
Edit .zshrc
vim ~/.zshrc
Add an alias with the alias
keyword:
alias k="kubektl"
Reload the .zshrc
config file
source ~/.zshrc
References
- https://dev.to/haamid/how-to-define-custom-alias-in-zsh-3b6a
Edit .zshrc
vim ~/.zshrc
Add an alias with the alias
keyword:
alias k="kubektl"
Reload the .zshrc
config file
source ~/.zshrc
References