chore: remove atuin

main
sudo pacman -Syu 2024-06-13 16:49:49 +07:00
parent b5589e39a3
commit cf129772e6
4 changed files with 6 additions and 58 deletions

View File

@ -232,13 +232,6 @@
>
</p>
</li>
<li>
<p>
<a href="https://github.com/atuinsh/atuin"
>https://github.com/atuinsh/atuin</a
>
</p>
</li>
</ul>
<p>Memory</p>
<ul>
@ -311,6 +304,11 @@
>https://github.com/GothenburgBitFactory/taskwarrior</a
>
</li>
<li>
<a href="https://github.com/atuinsh/atuin"
>https://github.com/atuinsh/atuin</a
>
</li>
</ul>
<p>For fun</p>
<ul>

View File

@ -409,34 +409,6 @@ rsync -avzP src/ dst</pre>
in <strong>src</strong>, useful to sync dst with src
</li>
</ul>
<div class="markdown-heading">
<h2 class="heading-element">
<a href="https://github.com/atuinsh/atuin">atuin</a>
</h2>
<a
id="user-content-atuin"
class="anchor"
aria-label="Permalink: atuin"
href="#atuin"
><span aria-hidden="true" class="octicon octicon-link"></span
></a>
</div>
<p>Remove duplicated command:</p>
<div class="highlight highlight-source-sql">
<pre><span class="pl-k">delete</span>
<span class="pl-k">from</span> history
<span class="pl-k">where</span> id not <span class="pl-k">in</span> (<span class="pl-k">select</span> <span class="pl-c1">max</span>(id)
<span class="pl-k">from</span> history
<span class="pl-k">group by</span> command);
<span class="pl-k">delete</span>
<span class="pl-k">from</span> history
<span class="pl-k">where</span> length(command) <span class="pl-k">&gt;</span> <span class="pl-c1">128</span>;</pre>
</div>
<p>Remove shell history:</p>
<div class="highlight highlight-source-shell">
<pre>cat /dev/null <span class="pl-k">&gt;</span> <span class="pl-k">~</span>/.zsh_history</pre>
</div>
<div class="markdown-heading">
<h2 class="heading-element">
<a href="https://github.com/ayoisaiah/f2">F2</a>

View File

@ -32,7 +32,6 @@ This just a raw list.
- https://github.com/sharkdp/vivid
- https://github.com/zellij-org/zellij
- https://github.com/ajeetdsouza/zoxide
- https://github.com/atuinsh/atuin
Memory
@ -51,6 +50,7 @@ Memory
- https://github.com/charmbracelet/glow
- https://github.com/dbrgn/tealdeer
- https://github.com/GothenburgBitFactory/taskwarrior
- https://github.com/atuinsh/atuin
For fun

View File

@ -295,28 +295,6 @@ Be careful flags (need dry run if not sure):
- `--delete`: delete files in **dst** if not exist in **src**, useful to sync
dst with src
## [atuin](https://github.com/atuinsh/atuin)
Remove duplicated command:
```sql
delete
from history
where id not in (select max(id)
from history
group by command);
delete
from history
where length(command) > 128;
```
Remove shell history:
```sh
cat /dev/null > ~/.zsh_history
```
## [F2](https://github.com/ayoisaiah/f2)
Rename: