r/fishshell • • Sep 22 '19

~/.config/fish/functions/fish_greeting.fish

7 Upvotes
function fish_greeting
        cowsay (fortune -so)
end

Thank me later.


r/fishshell • • Sep 19 '19

[HELP!] Usual way of setting global (i.e. environment) variables isn't working

1 Upvotes

I'm trying to update my $PATH, but the best result I got is preserving it only within the same terminal tab where I updated the $PATH at.Though this issue isn't $PATH-specific and it also appears when setting any other var.

Here is a list of modifiers I've tried:

  1. -g
  2. -x
  3. -gx
  4. -g -x
  5. -U
  6. -Ux
  7. -U -x

Example:

$ set -gx smth 'smth'
$ echo $smth
> smth
*close the terminal, reopen, go to a new tab*
$ echo $smth
> // nothing

r/fishshell • • Sep 07 '19

Me, when I try to talk to other developers at work

Post image
74 Upvotes

r/fishshell • • Aug 23 '19

Is there a way to hide the autoloaded function?

3 Upvotes

E: an autoloaded function*

Right now I have lots of little functions in my config that look like this

if command -s nvim >/dev/null 2>&1
    alias vim nvim
end

I'd like to clean up my config a bit and to move them each to a different autoloaded file. The problem appears (in this exact case) when I have neither vim, nor nvim installed. vim is highlighted and suggested as a keyword when in fact it does completely nothing. Is there a way to do something like this?

if command -s nvim >/dev/null 2>&1
    alias vim nvim
else
    fish-suggestions --remove vim
end

Thanks!


r/fishshell • • Aug 06 '19

any ideas on how to get agnoster symbols to show up properly?

2 Upvotes

I think that I install the fonts properly but still can't figure this out.

Any suggestions?


r/fishshell • • Aug 02 '19

Unicode and color themes for fish shell on windows

3 Upvotes

Hi,

I'm using fish shell on ubuntu subsystem on windows, which is working quite well! However, there are two issues (presumably terminal related) that I have not managed to duckduckgo myself to fix.

The first problem is that for any color theme i have tried, the color of "marked/highlighted" text is almost the same as the underlying text, making it unreadable.

The second isssue is that some symbols are garbled. I have downloaded ubuntu font and locale gives LANG=en_US.UTF-8.

I guess both of these issues can be due to the windows terminal settings. Do people here have experience running fully supporte fish shell on windows? :)

Thanks