借用了 V 友的一个 hexo 脚本,快速 cl g d 的。 但是只有将命令在 terminal 运行的时候才正常,无论是 bash 还是 zsh 运行,在 debug 里都报错
/bin/bash: line 3: hexo: command not found
试试看 where 吧?
/bin/bash: line 3: where: command not found
囧 where 都找不到。。 但这两条命令在 terminal 里运行都是正常的。 求问怎么了。。
hexodir=(${HOME}/Dropbox/hexo)
cd ${hexodir}
hexo clean
hexodir=(${HOME}/Dropbox/hexo)
cd ${hexodir}
hexo generate
hexodir=(${HOME}/Dropbox/hexo)
cd ${hexodir}
hexo deploy
就如上三个脚本