我正在尝试使用 ipython 作为我在 linux 中的默认 shell。%rehashx 在启动时执行,因此可以访问 shell 路径中的命令。有两个问题:
- 包含“+”的文件名不能自动补全
- 不能执行包含“+”的命令
例如:
g++ x.cpp
#---------------------------------------------------------------------------
#NameError Traceback (most recent call last)
#<ipython-input-2-6f1048d865c4> in <module>()
#----> 1 g++ x.cpp
#
#NameError: name 'g' is not defined