Warning
Now this Script has a New Version
More flexible, more convenient, simpler, and more free.
cd ~
touch .auto_run
chmod +x .auto_run
mkdir .zsh
touch .zsh/auto_run.zsh
copy auto_run.zsh
content and paste clipboard
content to your auto_run.zsh
file and save it.
then add following script to your .zshrc (maybe at last line)
source ~/.zsh/auto_run.zsh
更灵活的一个玩法是将
~/.auto_run
的脚本改成:然后在需要的文件夹中,创建自己的
.auto
文件,内容可以是任意zsh
/bash
脚本。