【发布时间】:2013-04-10 13:24:05
【问题描述】:
我想在使用! 运算符从 IPython 执行 bash 命令时获取我的 bash 环境,从而允许我访问我定义的 bash 函数:
In[2]: !<my_fancy_bash_function> <function_argument>
目前 IPython 正在采购 sh 而不是 bash:
In[3]: !declare -F
sh: 1: declare: not found
如何从 IPython 获取 bash 并设置我的环境设置?
【问题讨论】: