Fish is a unix shell with a clean design and a limited but powerful feature set.

learn more… | top users | synonyms

1
vote
1answer
26 views

Can I open terminator with one windows with bash and another with fish? [duplicate]

So I am running terminator 0.98. I like fish shell but for some task it is handy to have bash (like for virtualenvwrapper). So I now have two windows that open when I start terminator. But I would ...
-1
votes
1answer
26 views

Run fish script in background? [closed]

I'd like to always run a fish script in the background even if the user doesn't specify that. In bash, this can be done by surrounding the script with ( at the start and ) & at the end. Is there ...
2
votes
1answer
50 views

Fish shell shows dark-grey “⎔ characters in prompt

I'm pretty certain this is some foible of my SSH client (RoyalTS for Windows) but, having just installed and changed to fish shell, my prompt is preceded by two dark-grey ⎠characters. It doesn't ...
0
votes
2answers
29 views

Insert/overwrite mode in fish

I'm using Linux Mint on a MacBook and on its keyboard the equivalent for the INSERT key is the combination Fn + RETURN. At the moment I can only see the intended behavior of this combination in GNU-...
0
votes
1answer
36 views

fish: Unknown command “abbr”

Fish is not recognizing the abbr command. fish: Unknown command “abbr” abbr: command not found In all other ways fish is behaving normally. The Fish documentation doesn't give any clues as to why ...
3
votes
1answer
60 views

Fish Wrap all commands in a function

I have a function that is setup to send status updates to anybar. function e --description 'Run command' \ --argument-names command anybar yellow; eval $command; anybar green; end I am ...
0
votes
1answer
32 views

Why there isn't a number of the command and a timestamp for fish?

In fish, when I type history | less I see the following for example: history | less export HISTTIMEFORMAT="%h/%d - %H:%M:%S " bash in bash I see this: 491 18/04/16 14:31:02 cd 492 18/04/16 ...
1
vote
1answer
15 views

Command substitution with pkg-config in Fish

Fish's command substitution is supposed to be the equivalent of Bash's $() yet this simple example fails: g++ -std=c++14 -Wall -Wextra -pedantic -g (pkg-config --cflags sdl2) \ test.cpp (pkg-...
0
votes
1answer
16 views

how to bind a command when fish shell is started

Instead of using !! in bash, I am using a function to prepend sudo after a key combination.It seems the only way to use it is to bind the key every time a new shell is created. I have tried putting ...
0
votes
1answer
14 views

Is there a Fish Function I can make to eliminate leading “$”/“#” from commands copied from sites?

Sometimes when I'm copying and pasting a command from a site, I accidently copy the leading "$" or "#" by accident. Is there a Fish Function I could make that would check if one of those is included ...
0
votes
2answers
53 views

Fish-Shell Will Not Save my Aliases

I do not know why, but after making a whole bunch of fish aliases. I'm assuming I have neglected one simple step after assigning them all but I cannot seem find the solution myself. Can anyone lend ...
2
votes
1answer
64 views

How can I check if a shell is login/interactive/batch in fish?

I want to be able to check if a fish shell is being run in login, interactive, or batch mode, and this question only discusses bash.
0
votes
2answers
31 views

Why does the command not exit smoothly?

Following on from my previous question I tried to run ls -l; and grep html; which did what I wanted however the command didn't exit back to the prompt. Instead it appeared to be waiting for something ...
3
votes
1answer
41 views

Why does this fish script does not run from a launcher?

I've written the following script, intended to start a daemon and display a Zenity window, then stop the daemon when the window is closed: #!/usr/bin/fish if not ps aux | grep [s]erviio > /dev/...
1
vote
0answers
33 views

Is there a way to determine from bash what is wrong with fish?

Just installed oh-my-fish and start modifying oh-my-fish default theme under another name and broke something. Now after login the cursor just blinks and I can write but nothing is interpreted as ...
3
votes
1answer
52 views

How to stop fish shell from underlining path?

The fish shell will underline a path given as an argument to a command such as ls. Is there a way to change that behavior since I find it very ugly? For example:
-1
votes
2answers
31 views

How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users

How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users ? Can't find this info anywhere and it's getting hard.
0
votes
1answer
13 views

How can I mix variables and wildcards in fish?

I have a value stored in a variable that I want to use as part of a wildcard, like this: set extension (somecommand) cp *$extension ~/filezone But the * prevents the variable from being ...
1
vote
1answer
83 views

Execute bash command inside fish function

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like ...
1
vote
1answer
65 views

Scripting SSH function getting `Connection refused` error

I am using fish as shell, ssh shortcut function as following: function sshec2 ssh -i $HOME/.ssh/key.pem -t -t "ubuntu@$argv[1]" end To ssh into specific AWS EC2 instance, I wrote command pipe ...
-1
votes
1answer
74 views

Can't set my shell as fish shell due to error when using chsh due to lock file [closed]

My problem: I cannot set my default shell for user 'student' on CentOS 7 to fish-shell. I installed fish-shell by downloading the .gz, configuring, make, make install. output of which fish /usr/...
13
votes
1answer
548 views

Run a command only if the previous command was successful in Fish (like && in bash)

Using Bash I've often done things like cd /study && ls -la I understand that the double ampersand is telling the terminal don't execute part two of this command unless part one completes ...
0
votes
1answer
43 views

problem in login with default /bin/fish shell in gdm

I set my user default shell to fish. /etc/passwd file: mlibre:x:1000:1000::/home/mlibre:/bin/fish and then, in GDM I can't login with my user (mlibre). GDM prints some error. Then, I changed back ...
2
votes
1answer
30 views

Programs don't see fish environment variables

If I set the EDITOR environment variable to emacs in bash, running crontab -e will open the crontab in emacs. When I set it in fish with set -U EDITOR emacs crontab opens with vim. What can I do ...
6
votes
2answers
91 views

xtrace equivalent in the fish shell

Is there an equivalent of POSIX shells' set -x or set -o xtrace that cause the shell to display the commands being run in the fish shell?
2
votes
1answer
99 views

Fish shell slow to respond when command does not exist

When I write a command that does not exist in the fish shell (let's say l instead of ls), fish takes some time before responding that the command does not exist. I don't know if it looks for package ...
3
votes
3answers
202 views

fish: sudo: !!: command not found

I have fish installed in my Linux Mint DE. I really like how fish makes things easier and it looks so pretty although I haven't find a correct answer about why I can't execute: sudo: !!: command not ...
1
vote
2answers
305 views

Fish Shell: How to set multiple environment variables from a file using export

Is it possible to set environment variables with export in Fish Shell? I am working on a project that configures variables this way and it does not make sense to maintain a separate configuration ...
3
votes
3answers
166 views

fish: whitespace in alias

I am trying to alias an executable in a directory with a space in it. For example: alias myfile="/home/ben/test case/myfile" Now, this is not expanded the way I want (it thinks /home/ben/test is ...
3
votes
1answer
330 views

Why does the fish shell need to start a daemon process?

I just started playing with the fish shell, and I really like is so far. However, I can't figure out what the purpose of fishd is. So, why does fish need to start up a daemon process? What is the ...
1
vote
1answer
31 views

fish + script -> chaos, what options?

The fish shell uses many escape sequences as you type, especially if you ever make a mistake or use completion. 'script' just captures them literally, making quite a mess. More of a mess than col -b ...
1
vote
2answers
1k views

How to edit the fish shell startup script?

Is there a way I can do something like run myscript.sh in fish ? I am using Arch Linux, and have installed the fish shell together with oh-my-fish Can someone tell me which file I must edit to add ...
3
votes
1answer
91 views

Can't seem to set environmental variables in fish correctly?

this is my fish configuration: set -x CGO_CPPFLAGS 'llvm-config --cppflags' set -x CGO_LDFLAGS 'llvm-config --ldflags --libs --system-libs all' set -x CGO_CXXFLAGS '-std=c++11' I've tried running ...
1
vote
0answers
440 views

$PATH variable on Fish Shell OS X

I have somehow screwed up my path variables with Fish shell on OS X. Is this the proper $PATH variable in the config.fish? user@host ~> more ~/.config/fish/config.fish set -g -x PATH /usr/local/...
2
votes
2answers
267 views

In the Fish shell, how can I join an array with a custom separator?

I have an array whose elements may contain spaces: set ASD "a" "b c" "d" How can I convert this array to a single string of comma-separated values? # what I want: "a,b c,d" So far the closest I ...
1
vote
2answers
81 views

Accessing fish functions from perl

In bash I can do: foo() { echo bar; } export -f foo perl -e 'system "bash -c foo"' I can also access the function definition: perl -e 'print "foo".$ENV{"BASH_FUNC_foo%%"}' How do I do the same ...
5
votes
2answers
363 views

Is it possible to exec some commands in a subshell without immediately exiting afterwards?

I use the fish shell and would like to be able to "source" some shell scripts written with sh-compatible syntax, which fish cannot read. For example lots of software expects you to source some shell ...
2
votes
1answer
139 views

What's the easiest way to detect what signals are being sent to a process?

I'm trying to debug an issue with my shell (specifically, fish) sending signals to my background processes. I'd like to be able to recognize what signals a process is receiving. Ideally, I'd like ...
1
vote
0answers
75 views

need help with vf project in fish shell

Hi I am using virtual fish on fish shell, so while trying to do vf project projectName it throws the below error: vf project pytube fish: Unknown command 'virtualenv' /Users/userName/clones/...
2
votes
0answers
214 views

launching fish shell to new terminal of tcsh on centos

I have downloaded fish shell on my centos, but when I switch command to /bin/fish or even try to run xterm -e /bin/fish I am getting following error: Standard input: echo $_ " "; __fish_pwd ...
2
votes
2answers
176 views

Custom bash 'context' when running from FISH

First of all, I'm on OSX10. My default shell is BASH, which I have set up (through .profile and .bashrc) to automatically run the FISH shell when I open my terminal emulator. This allows me to set up ...
2
votes
2answers
288 views

Why doesn't set -x work within eval within a function in fish?

I ran into an issue trying to dynamically set some variables based on output of a program, in a fish function. I narrowed my issues down to a MWE: function example eval (echo 'set -x FOO 1;') ...
2
votes
0answers
386 views

Unable to create a configuration directory for [FishShell] Please set the $XDG_CONFIG_HOME variable

I'm getting this error when starting fishshell: melanie:~ melanie$ fish fish: Unable to create a configuration directory for fish. Your personal settings will not be saved. Please set the $...
8
votes
3answers
1k views

Share environment variables between bash and fish

bash and fish scripts are not compatible, but I would like to have a file that defines some some environment variables to be initialized by both bash and fish. My proposed solution is defining a ~/....
26
votes
8answers
2k views

Dealing with file names with special first characters (ex. ♫)

I have recently come across a file whose name begins with the character '♫'. I wanted to copy this file, feed it into ffmpeg, and reference it in various other ways in the terminal. I usually auto-...
1
vote
1answer
255 views

Can I use modulecmd with fish shell?

At work we use the Environment Modules package (and hence modulecmd) extensively. man module includes the sentence “The sh, csh, tcsh, bash, ksh, and zsh shells are supported by modulecmd.” This is ...
1
vote
2answers
130 views

Bash to Fish Conversion: Display custom message when CD'ing into a specific directory

Basically, I'd like to create a file .cd-reminder with an announcement/message inside a specific directory. It will be displayed every time someone 'cd' into that specific directory. There is a shell ...
5
votes
1answer
108 views

sudo and fish: no credential caching

I use fish as my standard shell. And I use sudo sometimes. But I'm having problems with credential caching. On an Ubuntu system, this works: niklas@Niklas-Mobil~> sudo true [sudo] password for ...
1
vote
2answers
184 views

Start several fish shells in different directories?

In order to be able to launch my work environment with a single command, I want to start several urxvt windows running fish shell in different folders. However, I found no obvious way of having fish ...
3
votes
2answers
298 views

how to set and use multiple parameters in single environmental variable in fish shell

I want to use following in fish shell: $ export arm='ARCH=arm CROSS_COMPILE=arm-eabi-' $ make $arm This works fine in bash/zsh but not on fish shell. But if I execute the following in fish shell: ...