Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add custom alias to .zshrc

Tags:

zsh

I can't seem to run these two scripts through zsh. Any ideas?

(In .zshrc)

# hidden files
alias show= 'bash /usr/local/bin/show.sh'
alias hide= 'bash /usr/local/bin/hide.sh'
like image 988
William Falcon Avatar asked Mar 23 '15 16:03

William Falcon


People also ask

Where do you put an alias on a Mac?

On your Mac, do one of the following: Select the item, then choose File > Make Alias. You can create as many aliases for an item as you want, then drag them to other folders or to the desktop.


1 Answers

Remove the space character after the = character in the alias declaration:

# hidden files
alias show='bash /usr/local/bin/show.sh'
alias hide='bash /usr/local/bin/hide.sh'
like image 171
amphetamachine Avatar answered Jan 01 '23 10:01

amphetamachine