chore: remove atuin
parent
b5589e39a3
commit
cf129772e6
|
@ -232,13 +232,6 @@
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
<a href="https://github.com/atuinsh/atuin"
|
|
||||||
>https://github.com/atuinsh/atuin</a
|
|
||||||
>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>Memory</p>
|
<p>Memory</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -311,6 +304,11 @@
|
||||||
>https://github.com/GothenburgBitFactory/taskwarrior</a
|
>https://github.com/GothenburgBitFactory/taskwarrior</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/atuinsh/atuin"
|
||||||
|
>https://github.com/atuinsh/atuin</a
|
||||||
|
>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>For fun</p>
|
<p>For fun</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -409,34 +409,6 @@ rsync -avzP src/ dst</pre>
|
||||||
in <strong>src</strong>, useful to sync dst with src
|
in <strong>src</strong>, useful to sync dst with src
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</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">></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">></span> <span class="pl-k">~</span>/.zsh_history</pre>
|
|
||||||
</div>
|
|
||||||
<div class="markdown-heading">
|
<div class="markdown-heading">
|
||||||
<h2 class="heading-element">
|
<h2 class="heading-element">
|
||||||
<a href="https://github.com/ayoisaiah/f2">F2</a>
|
<a href="https://github.com/ayoisaiah/f2">F2</a>
|
||||||
|
|
|
@ -32,7 +32,6 @@ This just a raw list.
|
||||||
- https://github.com/sharkdp/vivid
|
- https://github.com/sharkdp/vivid
|
||||||
- https://github.com/zellij-org/zellij
|
- https://github.com/zellij-org/zellij
|
||||||
- https://github.com/ajeetdsouza/zoxide
|
- https://github.com/ajeetdsouza/zoxide
|
||||||
- https://github.com/atuinsh/atuin
|
|
||||||
|
|
||||||
Memory
|
Memory
|
||||||
|
|
||||||
|
@ -51,6 +50,7 @@ Memory
|
||||||
- https://github.com/charmbracelet/glow
|
- https://github.com/charmbracelet/glow
|
||||||
- https://github.com/dbrgn/tealdeer
|
- https://github.com/dbrgn/tealdeer
|
||||||
- https://github.com/GothenburgBitFactory/taskwarrior
|
- https://github.com/GothenburgBitFactory/taskwarrior
|
||||||
|
- https://github.com/atuinsh/atuin
|
||||||
|
|
||||||
For fun
|
For fun
|
||||||
|
|
||||||
|
|
|
@ -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
|
- `--delete`: delete files in **dst** if not exist in **src**, useful to sync
|
||||||
dst with src
|
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)
|
## [F2](https://github.com/ayoisaiah/f2)
|
||||||
|
|
||||||
Rename:
|
Rename:
|
||||||
|
|
Loading…
Reference in New Issue