[英]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.