Questions tagged [fish]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Enabling fish-style manpage-based completion in bash

One of the really appealing features of fish is that it supports intelligent tab completion of options based on their specifications in each command's respective manpage. Has anyone created a way to ...
0
votes
0answers
20 views

Fish shell error

When I type command in fish shell, after command it returns: Could not send own process 401, 'sed' in job 3, 'commandline | sed 's|\s\+|\x1e|g'' from group 400 to group 400 setpgid: unknown error (...
2
votes
1answer
28 views

fish equivalent for sequence of commands — { cmd1 ; cmd2; }

In bash, you can pipe the same output to two commands using {}, i.e. in the following: cmd0 | { cmd1 ; cmd2 ;} | cmd3 cmd1 and cmd2 get the output of cmd0 in their stdin, and cmd3 gets the output of ...
2
votes
1answer
63 views

Fish shell, disable pager navigation through Tab / Shift Tab

Fish is a great shell (the best?) but its completion interface has a particular quirk that I personally don't like and would like to disable. It's expressed by this sentence in the tutorial: Hit ...
0
votes
0answers
40 views

I'm not able to figure out why fish-shell is not able to read my scripts directory from $PATH

After my failed attempt to unify my bash and fish configuration, I have finally separated both and 'hoping' that things should be fine now. As per the suggestions I received (against trying to re-use ...
1
vote
2answers
119 views

Starting Fish terminal from bashrc breaks standard terminal input

I've added a command to start fish terminal from bashrc and so far it was working ok. I've just added this line at the end of bashrc fish But after I quit fish to default shell current input isn't ...
0
votes
4answers
134 views

sed replace newline character with space

How can I use sed to replace new line character with any other character? Input: I cannot conceive that anybody will require multiplications at the rate of 40,000 or even 4,000 per hour ... ...
0
votes
1answer
72 views

Permission denied in fish shell on Debian when I edited the oh-my-fish “theme” file

I edited the "theme" file to display "bobthefish" instead of "default" using Windows. <W> fish: An error occurred while redirecting file “/home/purplesci/.config/omf/theme” open: Permission ...
0
votes
0answers
46 views

Symbols showing on blue background in Debian with oh-my-fish on WSL

I am using fish-shell on Debian with oh-my-fish installed. When I run the shell, it shows the prompt not on the black bckground, but on the light blue instead. This is running in Windows Terminal ...
1
vote
0answers
179 views

Unable to execute bash scripts from within fish-shell

I have a collection of bash scripts that I have added to the PATH so that I can execute them from anywhere. export PATH=$PATH:~/<path>/<to>/<scripts> so along with ./<path>/&...
0
votes
1answer
250 views

Set default interpreter in fish shell

I've installed mill on arch linux with fish as my default shell. Since the file /usr/bin/mill doesn't start with a shebang, fish won't execute the file. Instead it responds with $ mill Failed to ...
1
vote
1answer
331 views

Automatically print number of lines of command line output

In my fish shell, I am using fish command timer to automatically show the duration of each command after it has been executed. This is a neat feature, which I recommend. Now I want something similar ...
3
votes
0answers
26 views

Tracing environment variable modification

Pesky $PATH, there's one item I used to use ~/.workspace/bin. I just can't figure where its coming from. I changed the user shell to /bin/sh, and logged in from tty, checked PATH, and it was clear of ...
3
votes
2answers
218 views

Issue with type force PATH search

This is Bash. The behavior is similar in fish. $ which python /usr/bin/python $ alias py=python $ type py py is aliased to `python' ​And then, running type -P py prints nothing, where as I expected ...
1
vote
2answers
275 views

How to install fish in a remote server I cannot sudo?

I want to install the fish shell in a remote server I have no sudo privileges at, so that I can use it whenever I ssh.
1
vote
1answer
498 views

Does one string contain another in fish shell?

I am working on my fish.config for using the fish shell. I am trying to compare strings using bash syntax but fish doesn't accept the syntax. There is clearly another way to do it. Any suggestions ...
5
votes
2answers
2k views

fish shell : exec format error

On an Ubuntu ($ uname -a : Linux kumanaku 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux), I just installed fish ($ fish --version : fish, version 2.7.1) ...
2
votes
2answers
629 views

How to use fish on remote servers that have it installed without changing login shell?

I regularly ssh on several different servers, some of which don't have fish installed, but many do. I'd like to get fish as shell if available (changing midway is always tedious, and you lose the ...
0
votes
1answer
460 views

Terminal shows non-ascii? characters in UTF-16 hex codes

todoroki@todoroki-VJZ13B ~>printf "ä\n" echo "ä" ä ä ä \udcc3\udca4: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093 ...
1
vote
4answers
584 views

Define function in fish, use it with watch

I want to define a function, and call that function every n seconds. As an example: function h echo hello end Calling h works: david@f5 ~> h hello But when using watch, it doesn't... watch ...
5
votes
1answer
4k views

Why I can't add fish to /etc/shells?

I'm trying to use fish shell as my default shell on OSX. I have installed fish shell using brew and when I wanted to add it to /etc/shells I got this error: tee: /etc/shells: No such file or ...
3
votes
1answer
120 views

Bash operator translation to fish

I've been trying to learn to use jq and for bash it uses the <<< operator which I cannot understand after reading the bash documentation, what is this operator for? Besides that, I use the ...
0
votes
2answers
2k views

Yum not finding packages from added repo [CentOS 7]

I am currently trying to install fish on a new CentOS 7 machine. Followed the very straightforward guide which was: cd /etc/yum.repos.d/ wget https://download.opensuse.org/repositories/shells:fish:...
1
vote
1answer
440 views

Print and log stdout and stderr in fish shell

I am using the fish shell and try to log stdout and stderr into two separate files and printing them in the terminal at the same time (e.g., by piping each stream to tee). In bash I would do (see ...
0
votes
2answers
307 views

fish-shell: shortcut “ctrl-L”

I´m a keen user of the fish-shell and I like it a lot. One question though: on the page https://fishshell.com/docs/2.1/index.html there is a paragraph entitled "Command line editor". It lists a lot ...
0
votes
1answer
114 views

Terminal prompts have a mysterious [I] in it

I have been using fish shell for a while, but only recently got into playing around with the oh-my-fish framework and theming the prompt. I cannot figure out what this [I] character means! In most ...
3
votes
0answers
339 views

Group membership disappears with tmux

I have a weird problem in that my user (on Linux Mint 18.3 Sylvia) is part of group docker, which I verify by starting a terminal: $ groups me adm cdrom sudo dip plugdev lpadmin sambashare docker ...
0
votes
2answers
623 views

Temporarily Set $PATH for a fish Shell Session From a Script

I want to prepend a couple directories to the $PATH variable temporarily so that I can set up a temporary development environment that I don't really want to change what other fish sessions see. So ...
5
votes
2answers
2k views

How to access bash aliases in fish

I am missing my bash aliases in fish, and don't want to manually convert all of them to fish functions. How to get access to them all from within fish? Bonus points if: the solution supports an ...
1
vote
2answers
229 views

Processing local variable with regular expressions

I have some video files in source/ to encode and I want the output to be saved in the local directory, therefore removing source/ in the filename. I accomplished this by using the following command ...
3
votes
2answers
794 views

How to group multiple conditions in an if statement in fish

As is, the code below is invalid, because the brackets can not be used like that. if we remove them, it runs fine, and outputs: true true code: #!/usr/bin/fish if ( false ; and true ) ; or true ...
3
votes
3answers
1k views

shell command `tmux` throws `can't use /dev/tty` error

I just switched from using terminator to termite today. I also Installed Fish and oh my fish, Spent a couple hours configuring everything, but when I went to start a tmux session to get some work ...
2
votes
1answer
900 views

Is $argv in fish shell different from $@ in bash?

I was trying to learn and write some fish scripts, but I encountered a strange issue. # a.fish # this is a fish script set temp (getopt -o abc -l ace,bad,correct -- $argv) echo $temp When I ran ...
14
votes
2answers
3k views

Why can't I list a directory with read permissions?

I created a directory d and a file f inside it. I then gave myself only read permissions on that directory. I understand this should mean I can list the files (e.g. here), but I can't. will@wrmpb /p/...
0
votes
1answer
2k views

Using ~/.dircolors in fish shell

I just recently switched to the fish shell from bash and I am having trouble sourcing my dircolors template file to get custom colors to appear for certain file extensions. In bash, I was sourcing a ...
10
votes
1answer
3k views

How to change the default shell in NixOS?

At the moment I need to set the fish shell to be my default shell on NixOS and there is no official documentation on how to do that declaratively (not by running chsh) in NixOS.
1
vote
2answers
669 views

Capture stdout and stderr as separate variables in fish shell

Is this even possible? I'd like to run a command but capture its stdout and stderr as separate variables. Currently I'm using set -l var (cmd), which leaves stderr untouched. I can do set -l var (cmd ...
2
votes
1answer
330 views

How can one override bash Ctrl+C to be more fish-like

I find myself using bash more often than not on remote machines even though fish is my preferred shell. Fish has small, but nice feature that when you hit Ctrl+C something like this happens: if ...
1
vote
2answers
774 views

debian 9 terminal cannot change to su

I installed debian stretch yesterday. I installed fish shell . I change the default shell to fish by the following su chsh -s 'which fish' Then again enter the this command su chsh -s `which fish` ...
2
votes
0answers
586 views

How can I send stdout to multiple commands in fish shell?

Same question as How can I send stdout to multiple commands? but for fish shell.
3
votes
2answers
2k views

Start bash then autostart fish with terminator

I've been using terminator, and recently started using fish. When terminator starts (bash) I can use, for example, node just fine. If I then start fish I can still run node just fine. I set ...
2
votes
1answer
355 views

Issues with scp if I use bashrc to open fish if present

Situation: Need to login to multiple remote servers with some of them having fish shell Requirement: Default shell is bash. If I login to a server and fish is present, switch to fish shell, otherwise ...
4
votes
1answer
4k views

How does history work in fish shell?

I'm a bash user, starting a new job at a place where people use fish shell. I'm looking at the history command which I often use in bash. When I use it in fish I get a long list of my history which ...
1
vote
1answer
412 views

Remap Ctrl+E to autocomplete file names in fish

I'm using Fish shell on Urxvt terminal. I want to map Ctrl+E as auto-completion key, what is done by pressing Right arrow key by default. I'm not sure if it's shell's or terminal's feature to do so, ...
-1
votes
1answer
80 views

Fish Shell - function name conflicts with apt package in Ubuntu [closed]

I have created a fish function named proot but there is an Ubuntu package with the same name. When I type 'proot' into my fish shell, I get ~> proot The program 'proot' is currently not ...
2
votes
2answers
1k views

Ctrl Right and Ctrl Left doesn't move from a word to another in Fish Shell

When I use on Linux Mint my Fish Shell, using the Ctrl-← or Ctrl-→ keys isn't moving the cursor to the previous or next word. It switches between an I and an N instead: I cannot do ...
1
vote
1answer
476 views

Looking for fish theme with powerline, full path and return and carriage return after the prompt line

I'm looking for a theme I noticed some time ago and that I can't find again, it was a theme on fish or zsh where the prompt line (user & path) had powerline theme, the full path was displayed and ...
2
votes
0answers
203 views

History expansion in fish

I want to run the previous command with part of it replaced. In bash, I can use the history expansion feature: ^x^y runs the previous command again, except with x replaced by y. I tried it in fish and ...
2
votes
0answers
96 views

Printing autocomplete info on current option in fish shell

When writing a command with a - option and pressing tab, a list of possible completions with short explanations of what the options do is displayed. Is there a way to make this list also contain the ...
1
vote
1answer
310 views

How to unmap keys in fish?

I want to unmap (unbind) certain keys such as Up, Down, Left, Right, Page Up, Page Down, Home, End specifically in the fish shell. I guess I have to use the bind command in the .config/fish/fish....