Questions tagged [fish]
Fish is a unix shell with a clean design and a limited but powerful feature set.
31
questions with no upvoted or accepted answers
5
votes
0
answers
221
views
Tracing environment variable modification in the fish shell
There's one item I used to use in $PATH, which is ~/.workspace/bin. I can't figure out where it's coming from.
I changed the user shell to /bin/sh, logged in from TTY, checked $PATH, and it was clear ...
3
votes
0
answers
67
views
Sharing fish configuration across computers
I'm trying to share configurations across my computers (macOS and WSL2). Most of my configurations (abbreviations, plugins configuration) are by default in fish_variables which is meant to be ...
3
votes
0
answers
920
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
0
answers
356
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
0
answers
192
views
Memory usage out-of-control with shell command, but not with shell script
[Linux Mint 20.1, 16GB RAM, 16GB swap]
I recently converted my system - root and backup partitions - to BTRFS. I've been experimenting with archiving some of root's snapshots to my backup drive, but ...
2
votes
0
answers
356
views
Ranger image preview not working in URXVT running Fish shell until I open an image in Feh
I recently started using the Fish shell, and after opening a new URXVT instance I cannot get image previews in Ranger until I open an image first (using feh, in my case). Once an image has been opened ...
2
votes
0
answers
113
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 ...
2
votes
0
answers
145
views
Is there a way to determine from bash what is wrong with fish?
Just installed oh-my-fish and start modifying oh-my-fish default theme under another name and broke something.
Now after login the cursor just blinks and I can write but nothing is interpreted as ...
2
votes
0
answers
2k
views
$PATH variable on Fish Shell OS X
I have somehow screwed up my path variables with Fish shell on OS X.
Is this the proper $PATH variable in the config.fish?
user@host ~> more ~/.config/fish/config.fish
set -g -x PATH /usr/local/...
2
votes
0
answers
339
views
vf project in fish shell
I am using virtual fish on fish shell, so while trying to do vf project projectName it throws the below error:
vf project pytube
fish: Unknown command 'virtualenv'
/Users/userName/clones/...
2
votes
0
answers
1k
views
Unable to create a configuration directory for [FishShell] Please set the $XDG_CONFIG_HOME variable
I'm getting this error when starting fishshell:
melanie:~ melanie$ fish
fish: Unable to create a configuration directory for fish. Your personal
settings will not be saved. Please set the $...
1
vote
0
answers
110
views
urxvt writing over itself and leaving colored spaces
URXVT is writing over itself and leaving behind colored spaces... I feel like this is easier shown than described:
This started occurring overnight without making any changes, so I'm not sure where ...
1
vote
1
answer
122
views
Resume n jobs to background concurrently
I have many paused jobs in my shell. I would like to run bg for all of the jobs with a maximum four jobs running concurrently.
I know I can use GNU parallel for new tasks but I would like a BASH or ...
1
vote
0
answers
488
views
Set permanent environment variable for all shells
I want to set the root level environment variable that comes from sh(1) so that it is shared across all shells: sh, bash, zsh, and fish.
I can see in /etc/profile there's a command /usr/libexec/...
1
vote
0
answers
2k
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>/&...
1
vote
1
answer
613
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 ...
1
vote
0
answers
125
views
Internal path not set in GVim when launched from gvim.desktop
shell: bash, fish
terminal: xfce4-terminal
other-applications: xfce4-whiskermenu, tmux
I'm trying to have GVim inherit the full path from bash and/or fish when launching from from xfce-whisker-menu....
0
votes
0
answers
259
views
direnv and environment variables
I'm trying to get autoactivation of conda/mamba environments working using direnv but I'm running across a problem that seems to be due to my lack of understanding of how bash scripts work with ...
0
votes
0
answers
168
views
Trying to change "non command" color in kitty terminal (ver. 0.21.2) using the fish (ver. 3.3.1) shell with the oh-my-fish theme slacker
I've been trying to change the color of non-command such as the picture below (the uncompleated 'help')
link to the theme im using in omf: https://github.com/maqboolkhan/omf-theme-slacker
my kitty....
0
votes
0
answers
28
views
psub creates temp file as 'root' when fish is running under different user
Running the following from within a Docker container:
su postgres -s /usr/bin/fish -c "
echo 123 > /tmp/mypass
stat /tmp/mypass
stat $(echo 123 | psub)
"
Output of echo:
File:...
0
votes
1
answer
59
views
'fish_config browse' opens balena etcher instead of the default web browser
When I type fish_config browse in fish to configure it, it opens Balena etcher and not the web browser.
I am on Pop!_OS 22.04 lts and migrated from bash.
0
votes
0
answers
84
views
Command line history in the fish shell suffering from short term memory issues
Over the last few months, I've been trying out the fish shell as my interactive shell. One issue that somewhat irritates me is that the shell occasionally forgets recent commands from its command ...
0
votes
0
answers
705
views
yt-dlp with external downloader has black frames
I have the following fish shell script for downloading a slice of a video using yt-dlp and ffmpeg
function yt-dlp-trim -d "Download a slice of a video with yt-dlp"
if test (count $argv) ...
0
votes
0
answers
741
views
fzf not using `$FZF_DEFAULT_COMMAND`
I'm trying to get fzf to use rg --files as its command for searching, but can't seem to get it to use the $FZF_DEFAULT_COMMAND environment variable, as described in the docs.
I use fish as my shell, ...
0
votes
0
answers
320
views
Setting Fish Shell as default shell, prevents me from accessing commands
I used the following to set my default shell
chsh -s `which fish`
Which works great, but many commands such as brew and npm no longer works. Previously, accessing fish shell from zsh shell still ...
0
votes
0
answers
361
views
How to make --exclude-glob work with this use case of lftp and fish shell?
I have a statement that looks like this:
set cmd 'set ssl:verify-certificate false;
open -u abc,def ftp.somewhere.com;
mirror --only-newer --exclude-glob "{.git|node_modules|wp-config.php}" \...
0
votes
0
answers
121
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 (...
0
votes
0
answers
215
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 ...
0
votes
0
answers
73
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
votes
1
answer
165
views
WARNING: Running setxkbmap against an XWayland server
I'm using Fedora 37, tilix terminal emulator with fish shell.
Whenever I open a terminal, I get the warning
WARNING: Running setxkbmap against an XWayland server
How come? How to avoid it?
-1
votes
1
answer
265
views
How to set environmental variables in Fish?
Guys I recently switched to fish from Bash and I've run into problems setting some specific variables for golang in fish.
In my bashrc I would set them using:
export PATH="$PATH:$(go env GOPATH)/...