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