在启动时是否有适当的方法在fish shell中启用devtoolset或任何rh工具? 通常在Zsh (〜/ .zshrc)或Bash (〜/ .bashrc)中,您需要添加类似于以下内容的行:
source /opt/rh/devtoolset-7/enable
或
source scl_source enable devtoolset-7
不幸的是,这些都不在〜/ .config / fish / config.fish中起作用,因为fish不支持该语法。我知道怎么做的唯一方法是手动将启用文件中的所有行添加到我的鱼路径中。
答案 0 :(得分:2)
我刚刚找到了一种方法。
关键是使用第三方工具,该工具允许fish-shell Trying...
inside 0
outside 0
Trying...
inside 1
outside 1
Trying...
inside 2
outside 2
Trying...
raising...
handling ('<<Some accumulated result.>>')
命令读取bash脚本。我使用bass。
安装低音后,您只需使用source
更改gcc版本。您也可以将其添加到bass source scl_source enable devtoolset-7
中,以便每次登录时生效。
更多讨论here。
答案 1 :(得分:-1)
您可以在/etc/fish/config.fish中添加命令
componentDidMount = () => {
$('.sidenav').sidenav();
}