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.zshcopy 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
我现在主要是配合
devtodo在使用,~/.auto_run中只有todo命令,这样可以在进入存在.todo文件夹的时候自动显示todo list