[英]Enable redhats devtoolset in 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 不支持该语法。 我知道怎么做的唯一方法是手动将启用文件中的所有行添加到我的鱼路径中。
您可以在 /etc/fish/config.fish 中添加命令
# Put system-wide fish configuration entries here
# or in .fish files in conf.d/
# Files in conf.d can be overridden by the user
# by files with the same name in $XDG_CONFIG_HOME/fish/conf.d
# This file is run by all fish instances.
# To include configuration only for login shells, use
# if status --is-login
# ...
# end
# To include configuration only for interactive shells, use
# if status --is-interactive
# ...
# end
source scl_source enable rh-git29
source scl_source enable rh-postgresql10
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.