mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#fishshell

0 Beiträge0 Beteiligte0 Beiträge heute
Sybren A. Stüvel<p>Fish Shell question.</p><p>In Bash I can do "rm prefix[0-4]*.md", which means "remove all files that start with 'prefix', then have a digit in the 0-4 range, and end in '.md'". How can I do this in the Fish shell?</p><p>The docs (<a href="https://fishshell.com/docs/current/fish_for_bash_users.html#wildcards-globs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fishshell.com/docs/current/fis</span><span class="invisible">h_for_bash_users.html#wildcards-globs</span></a> and <a href="https://fishshell.com/docs/current/language.html#expand-wildcard" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fishshell.com/docs/current/lan</span><span class="invisible">guage.html#expand-wildcard</span></a>) don't mention this type of path matching at all.</p><p><a href="https://fosstodon.org/tags/fish" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fish</span></a> <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/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a> <a href="https://fosstodon.org/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://fosstodon.org/tags/questions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>questions</span></a> <a href="https://fosstodon.org/tags/NerdStuff" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NerdStuff</span></a></p>
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>
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>
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>
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>
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>
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>