💻 Software
Custom Commands in ZSH
Fresh5 days ago
Mar 15, 202645571 viewsConfidence Score0%
0%
Problem
I'm fairly new to Zsh and Bash. I wish to set up custom commands, for example which would bring me to my desktop. Adding the following lines to the .bash_profile file would work With Bash. It doesn't seem to work with Zsh. Is it just a matter of where I place the code, or am I going about this all …
Error Output
desktop() {
cd /Users/me/Desktop
}Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Custom Commands in ZSH
Low Risk
With zsh you should edit ~/.zshrc (create it if it doesn't exist -> example template https://github.com/robbyrussell/oh-my-zsh/blob/master/templates/zshrc.zsh-template) so: nano ~/.zshrc and add the alias you want, e.g. alias my_project_runserver='c…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix