Questions tagged [fish]
The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.
190
questions
3
votes
1
answer
108
views
Fish: Concise way to output elements of list on separate lines
I am wondering if there is a concise way to output the elements of a fish list on separate lines.
I know I can do e.g. echo $PATH | tr ' ' '\n' to achieve the desired output, e.g.:
/usr/local/sbin
/...
1
vote
1
answer
157
views
Redirect Streams
I am trying to redirect the results of rg to comm to compare the match intersection. Fish seems to think that I will be passing a file path and and not the stream.
> comm -12 <(rg -l "\\bar\\b" ...
6
votes
1
answer
3k
views
What's the easiest way to prepend the current time to the fish prompt?
I'd like to see the current time in my fish prompt so that I can always see for example when I started the last command. I don't want to install extensions.
1
vote
0
answers
134
views
fish prompt returns to defaults after change in fish_config
I've been using Fish for a while and after installing Oh-My-Fish the prompt changed to the default OMF prompt. And I couldn't change to what I was using before, one of the default Fish prompts called "...
0
votes
1
answer
536
views
Why might I not see stty key changes reflected in "stty -a"
I'm trying to change some key bindings in my console (Konsole). If I map intr to Ctrl-k, by running
stty intr \^k
I don't see the change reflected in
stty -a
speed 38400 baud; rows 46; columns 172;...
0
votes
1
answer
1k
views
How to copy fish config files to remote computer?
I am looking for instructions or a script to copy my fish config files to a new computer via scp. Or at least build a tar file with all of them.
6
votes
1
answer
879
views
Fish Shell - can't find where "la" is defined as "ls -la"
On both my Mac and Ubuntu when I type "la" in Fish Shell I receive output identical to that from "ls -la". I thought I might have defined it as a function. However, I can not find "la" being defined ...
3
votes
1
answer
11k
views
Installing Homebrew with fish-shell
I recently had a mishap with MySQL and when I uninstalled it from System Preferences it uninstalled Homebrew as well (I checked the erase all files that are related to MySQL, which was probably not ...
1
vote
1
answer
143
views
vim displays rbg codes in quickfix bar before error output
Recently I've started using :make and various other commands that make use of the quickfix bar. However the output it produces has this initial line of an escape character and rgb codes.
I was able ...
0
votes
0
answers
220
views
Can't find command after setting PATH in fish
I'm struggling to add /usr/local/bin to my PATH so I can use geckodriver, which is located in /usr/local/bin/geckodriver. I tried the to add the following to my config.fish
set -U fish_user_paths /...
4
votes
2
answers
1k
views
No colors in weechat, tig, htop, ranger, etc
I noticed that on my Mac I don't have any colors in e.g., tig, weechat, htop or ranger. On my linux I do. It happens in all terminal apps I have (alacritty, iterm and Terminal.app), in zsh, fish and ...
1
vote
1
answer
311
views
Fish generated Rsync command has unexpected effects
I am using fish shell and I have a helper function to generate a rsync command with my parameters all set. The final rsync command should be like this (the command is in one line, I made it multiline ...
3
votes
1
answer
1k
views
How to Expand Abbreviations Inline in Fish Shell?
I'm trying to save some time in Fish Shell by setting an abbreviation (nu) to expand to the string:
my-username@my-ip-address:/home/my-username
What I'm hoping to achieve is to enter:
scp some-file ...
3
votes
3
answers
2k
views
Powerline and Fish: How can I remove the large whitespace between the shell prompt and cursor?
I recently started using Arch Linux and just installed Powerline and Fish (version 3.0.0) last week. In my terminal, which is Termite (version 14), there's a large (horizontal) space between the shell ...
1
vote
2
answers
2k
views
Running command for bash in fish shell
I'm trying to identify all the large files in my git repo history and came across this command posted here.
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(...