編輯.bashrc文件


0

As per suggestion given by the app developer in my mail由於CPU的某些功能不足,我無法通過終端中的直接命令" vmd"運行" vmd"。相反,我必須鍵入3個命令:

/bin/sh:
export VMDNOOSPRAY=1
vmd

每次我必須打開vmd時都要鍵入這3個命令。解決方案是編輯位於主目錄中的.bashrc文件並設置命令:

export VMDNOOSPRAY=1

我試圖從終端編輯.bashrc文件,並在文件的最後簡單地編寫上面給出的命令,但這沒有幫助。所以我不知道嗎?

先謝謝了。

1

The support guy meant that you need only to place export VMDNOOSPRAY=1 in you .bashrc file.

Note that after placing it there you might want to relogin or restart the shell so the .bashrc file is re-read by the shell.

It also might be that your shell is not bash. That's why the support guy asks you what output the echo $SHELL command displays? If it's not bash you might want to set VMDNOOSPRAY=1 somewhere else than .bashrc depending on your shell.

Hope it helps.