我的工作我的fish.config使用鱼贝。
我正在尝试使用 bash 语法比较字符串,但 fish 不接受该语法。显然有另一种方法可以做到这一点。对于像下面的 bash 解决方案一样干净的解决方案有什么建议吗?
if [[ $STRING == *"other_string"* ]]; then echo "It contains the string!" fi
string fish variable
fish ×1
string ×1
variable ×1