Skip to main content

Questions tagged [fish]

The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.

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 ...
Daniel Rotter's user avatar
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 ...
ideasman42's user avatar
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 ...
Arthur Allshire's user avatar
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 ...
kmb's user avatar
  • 175
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....
kmb's user avatar
  • 175
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, ...
Napoleon's user avatar
  • 123
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 ...
Andy3153's user avatar
  • 123
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 $...
Volkov Sergey's user avatar
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 ...
SnookerFan's user avatar
  • 1,144
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='...
Eric Brandwein's user avatar
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 ...
Bagusflyer's user avatar
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/...
nelaaro's user avatar
  • 13.8k
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 ...
11th Hour Worker's user avatar
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 ...
stoqlt's user avatar
  • 11
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 ...
Cy8099's user avatar
  • 193

15 30 50 per page
1
4 5
6
7 8
13