Answers for "zsh create alias"

7

zsh create alias

# Locate your .zshrc file usually in root folder "~/.zshrc"
# Add the desired alias
alias aliasName="command"
# Reload .zshrc in orders for changes to take place
source ~/.zshrc
Posted by: Guest on March-23-2020
0

oh my zsh custom alias

# Create custom file aliases.zsh the directory .oh-my-zsh/custom/
touch $ZSH/custom/aliases.zsh
# Edit the file you just created
vim $ZSH/custom/aliases.zsh
# Add your formatted aliases e.g:
alias g="git"
# Source the .zshrc or start a new terminal session to apply changes
source ~/.zshrc
Posted by: Guest on July-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language