Questions tagged [fish]
The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.
190
questions
0
votes
1
answer
629
views
Do not store failed commands in fish history
I was wondering if it is possible to avoid storing commands in fish history which have failed. At the moment I e.g. have commands like :q stored in my fish history, because I accidentally typed that ...
5
votes
1
answer
2k
views
How to combine the output of multiple commands in fish?
Say I want to send the output of to commands into another.
cat a.txt && ls
I can do this:
fish -c "cat a.txt && ls" | another_command
But it seems clunky, is there a way to do this ...
2
votes
1
answer
2k
views
Fish Shell: remapping VI-mode keybindings
I want to remap some of the default movement bindings in fish's vi-mode (I'm using version 3.0). Specifically I want to change the $ and ^ key mappings to be E and B respectively to match what I use ...
5
votes
2
answers
9k
views
How to set a specific version of Java as JAVA_HOME in Fish in macOS
I was using Bash as my default shell on macOS but I decided to switch to Fish.
I am trying to switch between different versions of Java. In bash it was done using the ~/.bash_profile
export ...
2
votes
1
answer
45
views
Void folder is taking megabytes of space in OSX
xxx@MacBook- ~/D/p/a/Project5_min> du -sh *
2.6M app
4.0K build.gradle
60K gradle
4.0K gradle.properties
8.0K gradlew
4.0K gradlew.bat
4.0K instruction.txt
4.0K local....
2
votes
1
answer
598
views
Fish Shell - Virtualenv path not prepended to PATH
I am on a Mac running macOS Mojave. I run Iterm2 for terminal and fish version 3.0.0. I also use pipenv to manage my local development.
I have this problem where when I activate a python virtual env, ...
2
votes
2
answers
2k
views
Failed to login after setting fish as default shell
I tried fish for a while, and then i wanted to set it as my default shell. I edited /etc/passwd and changed the shell of my user to /bin/fish.
The problem is I couldn't login anymore. I tried through ...
0
votes
1
answer
299
views
Fish commandline: get cursor position in current process
With fish commandline command I can get current process part of commandline and current cursor position in entire buffer, but not in current process, e.g for commandline buffer
> echo test; echo $...
0
votes
1
answer
1k
views
How can I fix this error when trying to install Oh-My-Fish?
I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error:
curl -L https://get.oh-my.fish | fish.exe
% Total % Received % Xferd Average Speed ...
2
votes
1
answer
1k
views
Wrap command with options in fish function
Is there a way to wrap a command with options in a function, so that completions for that command with the options are shown?
For example, I want to be able to do this:
function remove --wraps='...
1
vote
1
answer
195
views
Setup different path for fish shell temporally
User libraries are normally in /usr/local/lib. However I want to build some third party libraries in for example /Users/user/Public/lib.
I only want to do it during my testing. Is there a elegant way ...
2
votes
1
answer
712
views
how to open tcp connection in fish shell
I am looking for a way to open TCP connections in fish shell.
In bash, I can do the following to open a TCP connection. This is quick telnet type test when telnet is not installed.
$ echo > /dev/...
1
vote
1
answer
2k
views
Difference between set -g and set -x
I'm currently migrating from bash configs over to fish and got stuck translating my over bash exports. It seems there's three ways to do it in Fish that get the job done but I can't tell which one I ...
1
vote
0
answers
98
views
fish shell, enter long command
Given the usual size of the terminal window, short commands fit. Ex:
stoqlt@desktop:~ > ls files
However, typing a command that is longer than the free space after the prompt, and reaching the end ...
7
votes
1
answer
2k
views
Why is it not recommended to set the default shell of the root user to a non-POSIX shell?
I am going to change my root’s default shell from bash to fish. As far as I know, fish is a not a POSIX standard shell. On the other hand, maybe the kernel or other things in the system have a ...