Skip to main content

All Questions

Tagged with
1 vote
2 answers
93 views

Show long commands in fish (ctrl+r) history on multiple lines

I'm looking for a solution to searching history with fish when your history is full of long commands. I often have curl commands that contain json payloads in my history that I want to repeat, for ...
Anthony Naddeo's user avatar
5 votes
2 answers
906 views

How to split a string (of arguments) in fish?

I want to split "-r --run" into "-r" and "--run" for string split " " "-r --run" I get string split: -r --run: unknown option` as an error It is ...
RHOOPH's user avatar
  • 123
3 votes
2 answers
1k views

How to save abbreviation in fish?

Running abbr --add ro rpm-ostree will set the abbreviation and it works as expected. But once I exit the shell with exit and then re-enter the shell by typing fish again, all abbreviations are lost. ...
RHOOPH's user avatar
  • 123
1 vote
1 answer
520 views

Preserve command history in chronological order (in fish)

I have noticed that default behaviour for storing command history is only storing the latest entry. Typing ls and then ls -al and then entering history would show: ls -al ls Typing ls once more would ...
s_dav's user avatar
  • 25
-1 votes
1 answer
594 views

How do I launch the fish shell in WSL through Cmder?

Setting it as the default shell in Ubuntu WSL results in the PATH not working properly, as described in the docs. So I want to avoid that issue by launching it through the terminal.
alicode1111's user avatar
3 votes
1 answer
1k views

I deleted fish shell and now VS Code terminal doesn't work

I have been working on a tutorial in Angular. Everything was working fine before I went to work today. I came back to my home computer after work today and the fish shell I was using within VS code ...
Michael's user avatar
  • 61
1 vote
1 answer
1k views

tmux changes shell prompt

Ubuntu 20.04 (running inside VirtualBox, if that's important.) tmux 3.0a (installed via apt) fish 3.4 (and earlier 3.3) starship.rs 1.1.1 Font: FiraCode Mono I have configured my prompt to look as ...
navneethc's user avatar
  • 113
2 votes
2 answers
2k views

Accidentally deleted fish while it was being set as my shell - what can I do?

I'm on macOS and I accidentally removed /usr/local/bin/fish while fish was being set as my shell. Now when I try to start my terminal I get: login: /usr/local/bin/fish: No such file or directory What ...
Hommer Smith's user avatar
1 vote
1 answer
709 views

How to remove leading file path information from fish shell tab-complete suggestions?

Using fish, typing ls <tab> in an example directory, the terminal displays: $ ls bar/ dir/ foo/ Continuing with d<tab><tab> this becomes: $ ls dir/ dir/moredir/ dir/otherdir/ ...
Quappas's user avatar
  • 15
0 votes
2 answers
2k views

Fish shell: Set variable outside of current shell

I would like to create the variable $EIGENto save the path where I installed the Eigen library in order to link in with my compiler. For this I was using set EIGEN path/to/eigen However if I echo $...
TheFibonacciEffect's user avatar
0 votes
0 answers
109 views

Fish shell alternates between prepending ~ and > depending on which directory I am in

I'm new to using the Fish shell; however, I'm observing some strange behaviour when I navigate between directories. Below is the output of my shell. Initially, all commands are prepended with ~; ...
ptk's user avatar
  • 127
0 votes
1 answer
283 views

Is it possible to have an abbreviation in a shell anywhere in a command?

I have a directory which has a really long path. However, I use this directory constantly and I cannot move it (WSL Windows directory). I generally use z to jump around to it quickly which is useful, ...
ZackT's user avatar
  • 93
1 vote
1 answer
62 views

distinguish C-i from Tab in Fish?

My fish configuration contains following bindings: bind \ci nextd-or-forward-word bind \co prevd-or-backward-word bind \t complete When I comment out complete then directory navigation to works as ...
bataliero1234's user avatar
1 vote
2 answers
366 views

Why fish shell does not allow function named `-`

I am trying to use fish as my default interactive shell. I was previously using bash and there was support for alias named - (ASCII hyphen, 0x2d). Why does not fish allow creation of alias or function ...
jiwopene's user avatar
  • 349
2 votes
1 answer
1k views

How to I persist prepended items to PATH in fish shell?

My PATH Prefixes Don't Persist I'm using Fish v3.2.0. According to the documentation, set -U fish_user_paths should persistently ensure that the directories stored in it should be looked up before ...
CodeGnome's user avatar
  • 2,101

15 30 50 per page
1
2 3 4 5