Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fish]

Fish is a command line shell. Its syntax is not based on the Bourne shell or the C shell.

0
votes
1answer
89 views

PAM: Authentication failure

Pardon for dumb question, just getting started with Linux, and I think this multiple questions all rolled into one. I have setup a AWS Ubuntu machine. I am getting to that machine from Windows by ...
0
votes
1answer
652 views

How to run Visual Studio Code as root without --user-data-dir argument?

I can run VS code with following command sudo code ~/.zshrc --user-data-dir="/root/.vscode" But it annoyed me. How do I config it so I can run VScode as root without --user-data-dir argument?
0
votes
1answer
26 views

Why do I automatically get a period (.) in my MANPATH?

I'm setting MANPATH to :bla, yet when I try to use it, its value has suddenly turned into .:bla and this completely changes the meaning of it.
4
votes
4answers
278 views

Snap applications don't show up after re-login using fish shell

On Ubuntu 18.04 I've changed my shell to fish via chsh -s `which fish` I've installed Maillspring and Visual Studio Code snap apps, they installed fine and could be launched from the dash initially,...
0
votes
0answers
46 views

Fish Shell Fatal Error : Not A Git Repository

I have been using Fish Shell for a while now, however, a day or two ago, this error started appearing on execution of every command within the shell: fatal: Not a git repository (or any of the parent ...
1
vote
1answer
239 views

How to remove the time stamp on the right side of the fish shell?

Simple question, I'd like to remove the time stamp on the right hand side of the fish shell terminal screen: On a sidenote, it would be even better to know how to customize it as in the image below:
0
votes
1answer
111 views

How to run installed oh my fish plugins?

I've successfully installed on my Ubuntu 16.04 LTS fish shell and oh my fish. One of the main appeals of this shell, for me, is the set of optional plugins. I succesfully managed to install some ...
0
votes
1answer
543 views

Why do snap packages disappear when using the Fish shell?

If I take a clean install of Ubuntu 17.10, install a package via snap, and change my shell to fish, after logging in again the package is missing from gnome-shell's menu and from my favorites list. ...
2
votes
1answer
373 views

command not found when using nvm in fish shell

How can I run and use nvm inside a fish shell? I was previously using bash and switched to fish shell and now I'm unable to use nvm. most of the wrappers are not maintained. what other alternatives ...
-4
votes
1answer
86 views

What are the primary differences between shells? [closed]

I was recently unable to answer what the differences between the fish shell and the bash shell were. Some of my questions deal with --> How come bash uses .bashrc and fish doesn't? I would really ...
8
votes
3answers
3k views

Change default shell when user not in /etc/passwd

Any ideas on how can I change the shell to fish? $ sudo usermod -s /usr/bin/fish jaan usermod: user 'jaan' does not exist in /etc/passwd $ getent passwd $USER jaan:x:15466:94:Jaan Altosaar:/home/...
0
votes
0answers
152 views

Failed to load apache server?

When I try to run service apache2 start through php shell_exec command it shows error in the apache log file:Failed to stop apache2.service: Interactive authentication required. See system logs and '...
5
votes
3answers
7k views

Windows CMD for Linux?

Let us assume that I am not in my right mind, as no one who has used a good shell like bash, fish or oh (or any of the other shells listed here) would want this. Nevertheless, seeing as one can have ...
0
votes
1answer
196 views

How to type a function using alias in fish shell?

# type repeat ;echo "this is a bash shell output" repeat is a function repeat () { local n i; n="$1"; shift; for ((i = 1; i <= "$n"; ++i)) do echo Date starting `date`;...
1
vote
1answer
80 views

Strange ls behaviour

When I type ls in home directory it shows names of directories with suffix / : Desktop/ examples.desktop Jupyter notebook/ peda/ Public/ and so on. So how can I fix it? EDIT: I use fish shell, type ...
0
votes
1answer
921 views

Where Fish Shell Contains own Aliases (functions) Files

I use Windows Linux Subsystem build on Ubuntu 14.04 in Windows 10. ➜ User lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 ...
2
votes
0answers
481 views

Fish Powerline with status line at the bottom of the shell

I am trying to figure out how this guys manage to have the status line at the bottom of fish-shell as he shared here. https://github.com/yongjhih/rc/blob/master/art/screenshot-fish-powerline.png I ...
2
votes
1answer
869 views

zsh/fish filename autocompletion in bash

Actually, I'm running Bash, and I'll like to make a settle modification at the configuration. With zsh and fish, we have the opportunity to display files and directories when we press Tab. Is there a ...
3
votes
1answer
242 views

Define functions for multiple shells

I'm currently using fish shell. As I use frequently fish, zsh, bash, how could I define a function in one of them which will be available for all shell? Do I have to define them in .profile? Once I ...
0
votes
1answer
102 views

Display the date with Emacs editor

I'm trying to configure Today is 20/11/2016 with Emacs editor. I think the command date is located in \bin. Therefore, with the editor I wrote what is in the following image : I know it should be ...
0
votes
1answer
3k views

Fish shell as default [closed]

I'm trying to become the root on my terminal with sudo -i command, but the system display sudo: /usr/local/bin/fish: command not found. I tried to set the fish shell as default, but I got a problem. ...
9
votes
1answer
418 views

How can I bind my capslock key to a fish shell command, and disable its toggle-caps functionality?

I have recently switched to fish shell, and its autocomplete is really nice. However, I find myself wanting to use tab to use the complete_autocomplete feature, as opposed to when it's unambiguous. ...
1
vote
2answers
523 views

fish alias with a variable in the middle?

I have dyslexia so I use fish as my shell since it's great with prediction, correction and aliasing. I'm trying to figure out how to make an alias with a variable inside followed by the rest of the ...
2
votes
1answer
1k views

Problem when I changed Fish to default shell

So I tried to make Fish my default shell with the command: sudo chsh -s /usr/bin/fish 'myUsername' Now I get this every time that I launch my terminal: Unable to open universal variable file '/home/...
4
votes
1answer
3k views

Set bash as default shell with option to enter into fish

I've seen a few questions as to how to enter into bash while fish is the default shell. I actually want to do the opposite. I currently have fish as my default shell, but would like to return to bash ...
1
vote
1answer
516 views

'echo $SHELL' returns 'fish' when I'm using 'zsh' [duplicate]

First I installed fish and then I wanted to test zsh so I installed it. Actually I'm using zsh and it works perfect (at the moment): I can switch themes, enable plugins, etc... But when I do: echo $...
4
votes
0answers
703 views

midnight commander freezes on remote file copy over fish/ssh protocol

I'm using midnight commander (mc), version 4.8.1 shipped with Ubuntu. when I try to copy a file from remote ssh server over the fish/ssh protocol, mc freezes at 0%, and I had to terminate it. I tried ...
2
votes
1answer
673 views

Problem with powerline-shell in fish

I use console fish with powerline-shell. Does anybody know why I have this bug? These strange characters.
5
votes
2answers
2k views

Why is my default shell from /etc/passwd not started by terminals in a Unity session?

I'm trying to set fish as my default shell. It's installed on the system through apt-get and is listed in /etc/shells: > which fish /usr/bin/fish > grep fish /etc/shells /usr/bin/fish I used ...
2
votes
1answer
1k views

Setting paths in Fish like in Bash?

I've got this in my bash_profile, and I can't figure out the equivalent in Fish: export PATH=$PATH:~/Dev/ark/bin export PATH=$PATH:~/bin/ export PATH=$PATH:~/i386-elf/bin/ export GOPATH=~/Dev/gocode/ ...
2
votes
2answers
2k views

Difference between `sudo su` and `sudo fish` [duplicate]

I am running fish (Friendly Interactive Shell) as my standard shell in Ubuntu 14.04, rather than bash. I noticed the following behaviour and don't know, if any of these are the preferred one to gain ...
4
votes
1answer
414 views

Is there a good replacement for !! (bang bang) in fish?

I have recently been trying out fish shell, but one thing I keep running into is fish's lack of the !! command/builtin. I cannot seem to find a good alternative or replacement for fish. Does one ...
6
votes
1answer
3k views

Automatically running tmux in fish

I've recently changed my default shell to fish (from bash). I had tmux set up to run automatically whenever I opened the console with bash, but I'm not sure how to set it up with fish. I tried ...
10
votes
4answers
2k views

How to get color man pages under fish shell?

There seems to be a way to get man pages to display in color (see here. It involves setting environment variables associated with less and adding these definitions to .bashrc. I tried doing the same ...
1
vote
0answers
2k views

Cursor positioning using mouse in bash possible?

In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times ...
7
votes
1answer
10k views

Exit from fish shell

I have Fish setup as my default shell. I want to exit from fish to bash. How can I do that with opened fish shell?
1
vote
1answer
1k views

automatic start fish shell in terminal window

I would like to have separate shortcut at my desktop just for the fish shell, Having a command like that does not start a window with fish shell : gnome-terminal fish If there is no solution for ...
9
votes
1answer
4k views

fish shell: “shopt -s dotglob” analog

I'm trying to migrate from bash to fish. What is the fish's analog to shopt? I'm trying to imitate this line from my .bashrc: shopt -s dotglob # for mv * see hidden files
3
votes
1answer
2k views

How do I make Home and End work in PuTTY SSH with fish shell?

Years ago, an Ubuntu update broke this and I've never found a solution. I have fish as my default shell. Ubuntu 12.10 Locally (Gnome Terminal), Home and End keys work fine in both fish and bash. When ...
2
votes
2answers
4k views

Easy way to install CrashPlan

Is there a .deb file, repo, PPA, or anything to install CrashPlan other than the non-standard install.sh file? I have fish as my shell, and I had to mess around a lot and finally use chsh first ...
2
votes
1answer
885 views

fish shell can not tab complete

I am using Ubuntu 12.04 x64 and I have installed the fish shell recently from http://ridiculousfish.com/shell/ , and i am quite fond of it. But the downside of using it is, it gives me below sigsegv ...
43
votes
2answers
53k views

How to add exports to fish like in .bashrc?

I just wanted to be able to add inside some fish configuration file (don't know which/where) the same function as this: export PERL5LIB=/home/iaco/workspace/perl:/home/iaco/devtools This line was ...
100
votes
5answers
92k views

How do I set fish as the default shell?

Is there a way to set fish as the default shell in ubuntu netbook remix? I put in my .bashrc to run fish, which works fine, but ubuntu recognizes it as fish running inside bash, which means that when ...
3
votes
2answers
2k views

How can I force fish to save new key bindings persistently after closing a terminal window?

How can I force fish to save new key bindings persistently after closing a terminal window? At the moment i have the problem: I open a terminal window, the default shell is fish. I add a key ...
1
vote
1answer
250 views

Add binding to fish that not auto executes the string?

How do i set up a key binding in fish, so that fish understands not to execute the bindingstring after appending it to commandline but just appending it as string to commandline. I want to set up a ...
1
vote
1answer
232 views

Using another browser than w3m for reading HTML helpfiles?

I'm using fish as shell. The internal help is based on html files and when I type help it opens w3m to view this help files. Since w3m is not my default browser I wonder where this configuration to ...
6
votes
2answers
6k views

Differences between fish and bash to pass commandline arguments to alias functions?

From the answers to my other question here i learned about the possibility to pass commandline arguments to a alias function in Bash. In Fish i can edit an alias by editing the file config.fish in ~/....