问题标签 [fish]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
fish - 执行存储在fish shell变量中的命令
我想运行以下命令:
但是鱼告诉我使用一个函数。我不确定最好的方法是什么。
bundler - 使用带有 rbenv 的 fish shell 找不到捆绑器
在尝试将 Bundler 与 ruby 1.9.3p194 一起使用时,我收到了错误:
Rbenv 的初始化config.fish
如下:
和输出rbenv init -
:
我没有将 fish 设置为默认 shell,并且 Bundler 在 Bash 中运行良好。
shell - 如何让fish中的选项卡列表像zsh中的选项卡列表一样工作?
当我在 zsh 中点击选项卡时,它会显示一个可能的完成列表:
然后,当我执行命令时,该命令的输出将替换曾经的选项列表:
当我在fish中做同样的事情时,它不会替换列表,而是在列表下放置一个新的提示行,类似于它在bash中的工作方式:
我可以得到zsh在fish中的列表替换功能吗?
shell - 无需配置即可运行交互式鱼
对于受控环境中电力线脚本的功能测试,我需要一个选项,使鱼不会加载任何配置文件,因为它们中的代码可能会破坏测试输出。使用 zsh 我会简单地写zsh -f -i
. 使用 bash 我会使用bash --noprofile --norc -i
. 我应该怎么处理鱼?
我宁愿避免使用虚拟机等繁重的解决方案。
ruby - How to make fish shell use an rvm ruby by default
I'm using fish shell 2.10 on Mac OS X 10.9.1. I would like to use a Ruby that I have installed using RVM as the default in my terminals, however I can't seem to make this work.
I've tried rvm use 2.1.0 --default
but upon opening a new terminal I still get the following:
Running the rvm
command causes the ruby to be loaded:
But it's annoying to have to do this every time I open a new terminal.
terminal - 如何测试命令的结果是否包含鱼壳中的字符串?
我正在尝试编写一个简短的函数,以允许我从命令行打开和关闭 wemo 灯。基本上我有一个命令,如果我输入,如果灯亮则wemo status
返回,Switch: Lights 1
如果灯灭则返回 0。我想写一个鱼功能,基本上可以让我切换它们:
虽然这不起作用。我在想括号可能会进行文本替换?任何人都知道我如何测试一个字符串是否包含 Fish 中的另一个字符串?
bash - 在 Fish Shell 中设置导出
我安装了多个版本的 PHP,对于我的正常开发,我总是使用通过自制软件安装的 PHP 5.5.x。
在鱼壳里
路径是正确的。
我的问题是,当我必须使用 Drupal 进行开发时,我使用 MAMP 作为捆绑的灯堆栈,并且 MAMP 包含自己的 php 版本。我的问题是,在将 Drush 与 Drupal 一起使用时,我无法像通常在 bash 中那样设置 PHP 可执行文件路径。我只想 drush 使用捆绑的 PHP 版本/可执行文件。
在 bash 我可以这样做:
但这在鱼壳中不起作用,我尝试了这个(没有成功):
鱼配置位置:~/.config/fish/config.fish
如果我运行fishshell,drush status
我总是会得到这个:
当我在 bourne shell 中运行相同的命令时,我得到了正确的设置:
那么,如何在fish中设置DRUSH_PHP的导出路径呢?
fish - Ignoring certain file(s) in fish shell history
I have very recently started using fish shell on my mac. I have a certain (hidden) .files
which I don't want to appear in the fish command completion (from history), since then they do not remain hidden at all :(.
Is there a way I can make fish ignore all commands involving these files to store to history?
Thanks in advance, Nikhil
fish - 鱼壳中的否定参数扩展
假设我在 a 目录中有所有这些文件:
我想删除所有文件,但file4
. 在zsh
我习惯这样做:
我该怎么做fish
呢?
shell - 在 Cygwin 中设置默认 Shell
我已经使用 Cygwin 有一段时间了。我现在想从 bash 切换到 fish。每个人都说你应该使用chsh -s /usr/bin/fish
,但由于某种原因,chsh
它对我不起作用。尝试修改我的Cygwin.bat
文件也不起作用,更改我的/etc/passwd
文件也不起作用。
我真的不明白发生了什么事。有人可以帮我吗?