Bash 要使用的脚本。bash_profiles

Bash script to use .bash_profiles

当我在 bash 脚本中使用命令时,我不断收到 "not found" 错误。

如果我正常使用终端,这些命令会起作用。

我怀疑它没有使用 .bash_profiles 所以它找不到路径?

这是我的 bash 脚本

# ~/.bash_profile
bash --login
open Applications/Postgres.app/

cd Users/mac1/Dev/TEST
sublime App23
. 2vennv/bin/activate
cd App23/
./manage.py runserver
bash

无论出于何种原因,命令 sublime 在 Bashscripts/sh 文件中不起作用。

我改用 subl 并且有效

# ~/.bash_profile
bash --login
open Applications/Postgres.app/

cd Users/mac1/Dev/TEST
sub App23
. 2vennv/bin/activate
cd App23/
./manage.py runserver
bash