mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.1K
active users

#fishshell

3 posts2 participants0 posts today
Daniel Wayne Armstrong<p>For sharing a common Fish shell configuration between multiple operating systems, the `switch` command is useful.</p><p>Using `switch` I can execute different blocks of code depending on the OS reported by `uname`.</p><p>Example:</p><p>```<br>switch (uname)<br>case FreeBSD<br> abbr -a l ls -aFhl --color=always<br>case NetBSD<br> abbr -a l colorls -aFGl<br>end<br>```</p><p>See: <a href="https://fishshell.com/docs/current/cmds/switch.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fishshell.com/docs/current/cmd</span><span class="invisible">s/switch.html</span></a></p><p><a href="https://fosstodon.org/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://fosstodon.org/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> <a href="https://fosstodon.org/tags/NetBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NetBSD</span></a></p>
Luca Ruggeri<p><span class="h-card" translate="no"><a href="https://snowfan.masto.host/@andre123" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>andre123</span></a></span> è consigliato prima scaricare poi controllare almeno. Almeno c'è l'https quindi nessuna sorpresa in the middle.</p><p>Però faccio lo spottone a <a href="https://mastodon.uno/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a>: da configurazione ha un bel po' di schemi configurati di fabbrica, giusto un fish_config e si va su browser web</p>
Luca Ruggeri<p><span class="h-card" translate="no"><a href="https://hostux.social/@lfa" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>lfa</span></a></span> <a href="https://mastodon.uno/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a></p>
Yann Büchau :nixos:<p><span class="h-card" translate="no"><a href="https://mastodon.social/@Krishnamishra" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Krishnamishra</span></a></span> :fish_shell: <a href="https://fosstodon.org/tags/fishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishShell</span></a> for interactive shells, because its <a href="https://fosstodon.org/tags/vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vim</span></a> keybindings, syntax highlighting, speed ( :rust: <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a>!) and tab completions are on another level, but :bash: <a href="https://fosstodon.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> for scripting, because it's just the standard.</p>
Benny Powers 🇮🇱🦁<p><span>I put together a </span><a href="https://social.bennypowers.com/tags/fishshell" rel="nofollow noopener" target="_blank">#fishshell</a><span> version of </span><span class="h-card" translate="no"><a href="https://fosstodon.org/@distrotube" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>distrotube</span></a></span><span>'s classic </span><code>colorscript</code><span> bash script. This version includes a generate subcommand which slices up sprite sheets and saves them with your names, and an </span><code>--animate</code><span> flag which runs animations based on the sprites you save<br><br></span><a href="https://github.com/bennypowers/colorscript.fish" rel="nofollow noopener" target="_blank">github.com/bennypowers/colorscript.fish</a></p>
Jochen Wersdörfer<p>What started as "I'll just run coding agents on a remote machine" turned into a deep dive through SSH agent forwarding, tmux clipboard integration, and Fish shell event handlers.</p><p>Spoiler: mosh segfaults when connecting M-series → Intel Mac 😅</p><p>My working (if inelegant) solution: <a href="https://wersdoerfer.de/blogs/ephes_blog/running-coding-agents-remotely-ssh-tmux-and-the-quest-for-a-seamless-experience/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">wersdoerfer.de/blogs/ephes_blo</span><span class="invisible">g/running-coding-agents-remotely-ssh-tmux-and-the-quest-for-a-seamless-experience/</span></a></p><p><a href="https://fedi.wersdoerfer.de/tags/tmux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tmux</span></a> <a href="https://fedi.wersdoerfer.de/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://fedi.wersdoerfer.de/tags/CodingAgents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingAgents</span></a> <a href="https://fedi.wersdoerfer.de/tags/ssh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ssh</span></a> <a href="https://fedi.wersdoerfer.de/tags/AITools" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AITools</span></a> <a href="https://fedi.wersdoerfer.de/tags/ClaudeCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ClaudeCode</span></a></p>
SP⟁CED GO⟁T<p>Switched my config from swaywm to hyprland. Also switched from foot terminal to kitty. Have a weird issue where fishshell won't show nerd font glyphs if started automatically from the kitty config. Works fine in foot. Works fine if I launch fish from bash in kitty. Only doesn't work when I start fish automatically from the kitty config. Got this far in narrowing it down and now I'm stumped. </p><p><a href="https://appdot.net/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://appdot.net/tags/KittyTerminal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>KittyTerminal</span></a> <a href="https://appdot.net/tags/Arch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Arch</span></a> <a href="https://appdot.net/tags/Hyprland" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hyprland</span></a> <a href="https://appdot.net/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a></p>
Adam H. Sparks :rstats:<p>I mean, I know I'm a nerd, but this AM I found myself checking currency conversions and thought, there must be a CLI tool for this. Since I use fish, there's this nice fish currency converter, <a href="https://github.com/Flameborn/fcc" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Flameborn/fcc</span><span class="invisible"></span></a> <a href="https://rstats.me/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a></p>
tshepang<p>just learned one can quickly visit historical directory locations in fish shell with alt-left, then forward in history with alt-right</p><p>one can alternatively type "prevd" or "nextd"</p><p>one more thing, "cdh" can be used to list all dirs that have been visited, with an option to visit any of them quickly</p><p><a href="https://hachyderm.io/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a></p>
Christiano Anderson<p>LSD - a good ls replacement </p><p><a href="https://christiano.dev/til/lsd-ls-replacement/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">christiano.dev/til/lsd-ls-repl</span><span class="invisible">acement/</span></a></p><p><a href="https://chaos.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://chaos.social/tags/fedora" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fedora</span></a> <a href="https://chaos.social/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> <a href="https://chaos.social/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a></p>
Daniel Wayne Armstrong<p>For ages I used `bash` simply because its the default shell on most Linux distributions. Now that I'm exploring FreeBSD I thought to myself, why not also consider alternative shells?</p><p>I briefly used the FreeBSD default `sh`, then spent a few weeks with `oksh` (portable version of OpenBSD `ksh`). Inspired by <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>b0rk</span></a></span> 's "Reasons I still love the fish shell" I decided to give the aforementioned shell I try... 🐟 </p><p><a href="https://www.dwarmstrong.org/fish-shell/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">dwarmstrong.org/fish-shell/</span><span class="invisible"></span></a></p><p>I ❤️ it and its my new interactive shell.</p><p><a href="https://fosstodon.org/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://fosstodon.org/tags/Shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shell</span></a></p>
Rosa Control<p>Three (‼️) years ago <span class="h-card" translate="no"><a href="https://mastodon.xyz/@Profpatsch" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Profpatsch</span></a></span> published a cute snippet on Twitter. It took me this long to read it and add it to my system, which is pretty dumb because all this time I've reach for `nix-env`🤦🏻‍♀️ <a href="https://social.vivaldi.net/tags/nix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nix</span></a> <a href="https://social.vivaldi.net/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a> <a href="https://codeberg.org/tssm/.config/commit/a4255df0f2231dba07668adefd4e47a8581a3c40" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/tssm/.config/comm</span><span class="invisible">it/a4255df0f2231dba07668adefd4e47a8581a3c40</span></a></p>
Daniel Wayne Armstrong<p>I'm exploring the fish shell today. Right off the bat with no tweaking its pretty nice!</p><p>And if you run `fish_config` in a terminal it opens a configuration panel in the browser. I just used it to create a prompt in the Nord colour palette, and working from the auto-generated output I can further customize it manually to get it looking the way I like.</p><p><a href="https://fishshell.com/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">fishshell.com/</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://fosstodon.org/tags/Shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shell</span></a></p>
Sam Doran<p>Abbreviations in <a href="https://hachyderm.io/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a> are pretty neat. I'm a huge fan of programs that type for me, like TextExpander, Typinator, and Keyboard Maestro. Having the same functionality built into the shell is very nice.</p><p><a href="https://fishshell.com/docs/4.0/cmds/abbr.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fishshell.com/docs/4.0/cmds/ab</span><span class="invisible">br.html</span></a></p>
Breadly :breadcat: <p>I’m having a weird lil problem with Fish shell. I’ve just finished to write a little script to use with my Waybar config. The script is located at <code>~/.config/fish/functions/the-script.fish</code> and have inside it multiples functions.</p><p>When I’m calling the script directly from my Fish shell, the script works perfectly. <strong>But</strong> if I call the script with <code>fish -c the-script.fish</code>(which is what I’m basically doing with Waybar), the script throw stupid errors like “Uhh command what <em>(when calling a function)</em>? None of theses words are in the bible.”</p><p>And I don’t get why Fish behaves so differently depending on how I call the script :neocat_woozy:</p><p>RT appreciated :neocat: </p><p>(The script I’m talking about as reply bellow)</p><p><a class="hashtag" href="https://soc.breadcat.run/tag/fish" rel="nofollow noopener" target="_blank">#Fish</a> <a class="hashtag" href="https://soc.breadcat.run/tag/fishshell" rel="nofollow noopener" target="_blank">#FishShell</a></p>
Lars Wirzenius<p>I experimented with not having persistent shell history, after <span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>simontatham</span></a></span> blogged about it.</p><p>Good:<br>- higher threshold for writing long complicated commands<br>- lower threshold for writing shell scripts instead</p><p>Bad:<br>- writing shell scripts</p><p>I've since started experimenting with the Fish shell, and it brings a whole different level to the shell history game. So far I like it.</p><p><a href="https://toot.liw.fi/tags/UnixShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UnixShell</span></a> <a href="https://toot.liw.fi/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> <a href="https://toot.liw.fi/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://toot.liw.fi/tags/fishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishShell</span></a> <a href="https://toot.liw.fi/tags/fish" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fish</span></a></p>
bram dingelstad :nb_flag:<p>here's the help prompt 👀✨</p><p><a href="https://gamedev.lgbt/tags/Shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shell</span></a> <a href="https://gamedev.lgbt/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://gamedev.lgbt/tags/SysAdmin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SysAdmin</span></a> <a href="https://gamedev.lgbt/tags/DevOps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DevOps</span></a></p>
bram dingelstad :nb_flag:<p>not to brag, but i made such a cool <a href="https://gamedev.lgbt/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> script just now</p><p><a href="https://gamedev.lgbt/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a> <a href="https://gamedev.lgbt/tags/Sysadmin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Sysadmin</span></a></p>
Thomas Skardal<p>This was just what I needed. Something is too late in the $PATH and I want it move to the front. <a href="https://mastodon.social/tags/fish" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fish</span></a> <a href="https://mastodon.social/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a></p><p>$ fish_add_path -m &lt;dir&gt;</p><p>NAME<br> fish_add_path - add to the path</p><p>[...]<br> -m or --move<br> Move already-included directories to the place they would be added - by default they would be left in place and not added again.</p>
Daniel Wayne Armstrong<p>On FreeBSD, which interactive shell do you primarily use for your non-root user? </p><p>If "other", perhaps leave a comment about which shell it is.</p><p><a href="https://fosstodon.org/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> <a href="https://fosstodon.org/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> <a href="https://fosstodon.org/tags/sh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sh</span></a> <a href="https://fosstodon.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://fosstodon.org/tags/ksh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ksh</span></a> <a href="https://fosstodon.org/tags/zsh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zsh</span></a> <a href="https://fosstodon.org/tags/fishshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fishshell</span></a></p>