简体   繁体   中英

Alias to start a shell script executes automatically

I am trying to create an alias to start a shell script as below:

alias emulate="~/start_emulator.zsh"

But as soon as i save and source the zshrc file, the script executes automatically instead of typing the alias.

Is there a way to prevent that from happening.

Just put your script in /usr/bin/ . You shouldn't even need an alias at all then.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM