Questions tagged [fish]

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

Fish (short for "friendly interactive shell") is a command line shell first released in 2005. It is an exotic shell, meaning its syntax is different from Bourne-style shells like Bash, Dash, and Zsh, and from C-style shells like tcsh.

78 questions
3
votes
1 answer

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 exist?
Seth
  • 58,122
2
votes
1 answer

Fish shell as default

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. Could anyone be able to tell me what I could do to…
1
vote
1 answer

Fish history not working; more specifically, not adding new entries

I don't really know exactly since when this happen. I think since I updated to Ubuntu 20.04. I have used Fish since a long time, and earlier via Linuxbrew to get a more recent version. So I assume this is some mixup of the configs or formats. How do…
Albert
  • 2,577
0
votes
1 answer

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`; echo Before waiting `date`; sleep…
devilz
  • 169
  • 1
  • 3
  • 16