<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Give the Fish (Posts about hack)</title><link>https://necromuralist.github.io/Give-The-Fish/</link><description></description><atom:link href="https://necromuralist.github.io/Give-The-Fish/categories/hack.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:cloisteredmonkey.jmark@slmail.me"&gt;Cloistered Monkey&lt;/a&gt; 
&lt;div id="license"xmlns:cc="http://creativecommons.org/ns#" &gt;This work is licensed under
&lt;a href="http://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;"&gt;CC BY 4.0
&lt;img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"&gt;
&lt;img src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"&gt;&lt;/a&gt;
&lt;/div&gt;
</copyright><lastBuildDate>Fri, 12 Jun 2026 00:47:59 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Reverting To Emacs alt-backspace</title><link>https://necromuralist.github.io/Give-The-Fish/posts/reverting-to-emacs-alt-backspace/index.html</link><dc:creator>Cloistered Monkey</dc:creator><description>&lt;div id="table-of-contents" role="doc-toc"&gt;
&lt;h2&gt;Table of Contents&lt;/h2&gt;
&lt;div id="text-table-of-contents" role="doc-toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://necromuralist.github.io/Give-The-Fish/posts/reverting-to-emacs-alt-backspace/index.html#org7cfafc7"&gt;Alt-Backspace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://necromuralist.github.io/Give-The-Fish/posts/reverting-to-emacs-alt-backspace/index.html#org7f38dbd"&gt;Links&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;
Fish decided to override the Unix/emacs behavior for alt-backspace in favor of (I think) the &lt;a href="https://en.wikipedia.org/wiki/IBM_Common_User_Access"&gt;Common-User-Access (CUA)&lt;/a&gt; behavior which deletes all arguments to a command instead of the previous emacs-like behavior of deleting word by word. There's an alternate keybinding but I keep forgetting about it and end up wiping out entire paths or strings when trying to correct errors so I'm putting the prior behavior back.
&lt;/p&gt;
&lt;div id="outline-container-org7cfafc7" class="outline-2"&gt;
&lt;h2 id="org7cfafc7"&gt;Alt-Backspace&lt;/h2&gt;
&lt;div class="outline-text-2" id="text-org7cfafc7"&gt;
&lt;p&gt;
Here's what I'm adding to the fish configuration:
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nb"&gt;bind &lt;/span&gt;alt-backspace backward-kill-word
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;
This was taken from &lt;a href="https://github.com/fish-shell/fish-shell/issues/12122#issuecomment-3602424666"&gt;user &lt;code&gt;rski&lt;/code&gt;'s comment&lt;/a&gt;, which also had some other keybindings which I'm not putting in since I don't normally use them anyway, but I'll document them here in case I decide I need them later.
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nb"&gt;bind &lt;/span&gt;ctrl-alt-h backward-kill-word
&lt;span class="nb"&gt;bind &lt;/span&gt;ctrl-backspace backward-kill-token
&lt;span class="nb"&gt;bind &lt;/span&gt;alt-delete &lt;span class="nb"&gt;kill&lt;/span&gt;-word
&lt;span class="nb"&gt;bind &lt;/span&gt;ctrl-delete &lt;span class="nb"&gt;kill&lt;/span&gt;-token
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;
From Fish's &lt;a href="https://fishshell.com/docs/current/cmds/bind.html"&gt;&lt;code&gt;bind&lt;/code&gt; documentation&lt;/a&gt;:
&lt;/p&gt;

&lt;p&gt;
&lt;code&gt;backward-kill-word&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
Move the word to the left of the cursor to the killring, until the start of the current word (like vim’s db)
&lt;/p&gt;

&lt;p&gt;
&lt;code&gt;backward-kill-token&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
Move the argument to the left of the cursor to the killring
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="outline-container-org7f38dbd" class="outline-2"&gt;
&lt;h2 id="org7f38dbd"&gt;Links&lt;/h2&gt;
&lt;div class="outline-text-2" id="text-org7f38dbd"&gt;
&lt;ul class="org-ul"&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/IBM_Common_User_Access"&gt;Wikipedia: IBM Common User Access&lt;/a&gt;: General article about where the new behavior comes from.&lt;/li&gt;

&lt;li&gt;&lt;a href="https://github.com/fish-shell/fish-shell/issues/12122"&gt;GitHub: Issue 12122 - Revert alt-backspace behaviour on non-macOS systems&lt;/a&gt; - The place I found the way to re-bind the old behavior.&lt;/li&gt;

&lt;li&gt;&lt;a href="https://github.com/fish-shell/fish-shell/pull/10766"&gt;Github: Pull Request - Default bindings for token movement commands&lt;/a&gt; - It sounds like they were trying to unify the behavior across platforms. A nice idea, unfortunately it bit me. Maybe I'll learn ctrl-backspace one day.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;</description><category>configuration</category><category>hack</category><category>readline</category><guid>https://necromuralist.github.io/Give-The-Fish/posts/reverting-to-emacs-alt-backspace/index.html</guid><pubDate>Fri, 12 Jun 2026 00:10:38 GMT</pubDate></item></channel></rss>