Mac OSX代码。命令不起作用

时间:2016-01-01 21:18:59

标签: visual-studio-code

首先祝大家新年快乐,我试图将Visual Studio代码设置为从终端启动并使用VS代码站点的说明,但使用以下命令编辑〜/ .bash_profile或〜/ .profile文件不起作用进行。

function code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*; }

那可能是什么问题?

提前谢谢你,

3 个答案:

答案 0 :(得分:2)

您需要在进行更改后刷新bash_profile。

. ~/.bash_profile

答案 1 :(得分:0)

解决了这个问题。编辑bash_profile后。我们需要重置机器以使更改生效

答案 2 :(得分:0)

只需将以下命令粘贴到终端并返回即可。无需关闭终端或重新启动

mkdir ARCHS
make -f Make.top startup
make[1]: Entering directory '/cygdrive/c/local/ATLAS/win'
Make.top:1: Make.inc: No such file or directory
make[1]: *** No rule to make target 'Make.inc'.  Stop.
make[1]: Leaving directory '/cygdrive/c/local/ATLAS/win'
make: *** [Makefile:542: startup] Error 2
mv: cannot stat 'lib/Makefile': No such file or directory
../configure: line 482: lib/Makefile: No such file or directory
../configure: line 483: lib/Makefile: No such file or directory
../configure: line 484: lib/Makefile: No such file or directory
../configure: line 485: lib/Makefile: No such file or directory
../configure: line 520: lib/Makefile: No such file or directory
../configure: line 521: lib/Makefile: No such file or directory
../configure: line 522: lib/Makefile: No such file or directory
../configure: line 541: lib/Makefile: No such file or directory
DONE configure