#fish_shell

2025-02-02

Accidentally discovered a(nother) cool feature in #fish_shell , pressing F1 opens the man page for the command you are currently typing.

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-09-18

@Danathar @todd_a_jacobs@infosec.exchange True! You can be #POSIX compliant and still frustrate any sane *nix user's expectations about how systems work, or do things in non-portable ways. Heck, I use the #fish_shell which doesn't even *try* to be POSIX compliant, but I love working with it anyway and the docs are solid.

I think the real issue is that so much of #Darwin #userland is poorly documented, if at all. That just makes deviations from the norm more painful than necessary IMHO.

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-05-26

I'm currently playing with #Codeium in #Vim, and am finding it interesting. It opens chats using a local browser port, sort of like the #fish_shell help command does. However, I can't find a CLI in #Homebrew (the AI may be hallucinating that there is one) or figure out how to make a whole-codebase query rather than getting context just from the current buffer.

Anyone tried it with Vim yet? How do I ask something like "please summarize what this codebase does" within Vim or at a shell prompt?

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-05-25

For anyone using the #fish_shell, the following #shell_function definition will let you switch to the latest CRuby #chruby knows about. It could be simplified (e.g. setting a function-local variable is mostly for debugging) or use builtins instead of pipes in shells where that matters, but I still find it useful for myself. Maybe you will, too.

```fish
function chruby-latest
set latest (
chruby | tr -d '*' |
pcregrep -o '\bruby-[\d.]+' | tail -1)
chruby $latest
end
```

fish shellのプロンプトにkubectlのContextとNamespaceを表示させてみた
dev.classmethod.jp/articles/fi

#dev_classmethod #Kubernetes #Amazon_EKS #fish_shell

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2024-05-09

There's been recent discussion about #POSIX & the #bash_shell. Some shells are awesome but don't even pretend to follow the POSIX standards. The #fish_shell is a good example.

Portability can be useful, but context matters too. Why deviate from standards? #LSB excludes #RubyLang but specifies #Perl & #PythonLang. #XDG is needlessly confusing. Distros may deviate from the #Linux #FHS because "reasons."

Goals & targets matter more than portability for its own sake.

fishshell.com/docs/current/des

Fabian :mastodon:pixel_fabian@chaos.social
2024-02-25

Any #StarshipRS users out there? 🖥️ Just build my first preset and tested it accross #powershell, #fish_shell, #bash. Nice to have a consistant promt accross the different shells 😀

codeberg.org/pixel-fabian/star

Felix 🇨🇦 🇩🇪 🇺🇦fst@mstdn.io
2024-02-20

@jon same here. longterm #bash_shell and #fish_shell user. Not using #nushell as a daily driver yet but a using it a lot for simple data wrangling pipelines. I love the structured data approach which reduces so much output parsing. And for everything that doesn't have structured output formats I combine it with #jc and `| from json`

2024-02-19

@Dominix any #fish_shell enthusiasts able to translate the above into the equivalent fish equivalent?

2024-01-24

Yesterday I created the docker-fish repo to provide Fish 3.7.0 inside Alpine-based container:

docker run --interactive --tty --rm purefish/docker-fish:3.7.0 "fish --version"

github.com/pure-fish/docker-fi
#fish_shell #docker

Mozzarella Mommyplainoldcheese@masto.ai
2024-01-04

wrote this fish script to run once a day to display the "captain its xday" meme and choose the correct days image.

#fish #fish_shell #motd #linux #captainitswednesday #shell

an image of a terminal with a message of the day script. the script displays the "Captain, it's Xday" meme. the date, time, memory usage, cpu load and disk space are also shown
Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2023-12-30

@postmodern #zsh is nifty but overcomplicated. Have you tried #fish_shell yet? It doesn't even pretend to be #POSIX compliant, and does a lot of stuff automagically that you have to really work at in other shells.

It breaks applications that expect to run from inside a #Bourne shell, but I work around that by using zsh as my default shell and then exec-ing fish unless it detects certain conditions that require zsh, which is a very small subset of tools like the #ShellFish #SSH client.

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2023-12-30

@avdi I'm not saying that will be fun, or that there isn't an easier way if we knew what was actually wrong. I'm just sharing my own experiences with the changes in #Homebrew & #macOS, and hoping it solves your issue pragmatically even if not efficiently.

I went through the tortures of the damned getting everything to work right with the #fish_shell (ask me about that sometime), so I empathize. Wish had a better answer, but I hope this helps.

2023-11-08

Захотелось остановить бесконечный цикл в #fish_shell

Но решение есть на самом деле и оно почти что на поверхности - поставить короткий слип. Почему так работает не знаю, но работает.

while true; sleep 0.25 && command ;end

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst