在启动时,是否有适当的方法来启用devtoolset或鱼壳中的任何rh工具?通常,在Zsh (~/.Zsh)或Bash (~/..bashrc)中,您将添加类似于以下内容的行:
source /opt/rh/devtoolset-7/enable或
source scl_source enable devtoolset-7不幸的是,这两种方法都不能在~/..config/ fish /config.fish中工作,因为fish不支持语法。我知道如何做的唯一方法是手动将启用文件中的所有行添加到我的鱼路径中。
发布于 2020-06-09 07:05:31
发布于 2018-09-06 00:25:15
您可以在/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-postgresql10https://stackoverflow.com/questions/51845152
复制相似问题