#1 feat: add fish configuration file

This commit is contained in:
Rico Riedel 2023-03-26 18:31:27 +02:00
parent 979a820200
commit ce2e4d898f
No known key found for this signature in database
GPG Key ID: E8835756AADCBA00
10 changed files with 26 additions and 7 deletions

View File

@ -13,18 +13,30 @@ cargo build --release
cp ./target/release/wipe /usr/local/bin
```
### ZSH
There is a [zsh script](misc/wipe.zsh) which can be
sourced to replace `clear` and `CTRL+L` with this program.
### Shell Integration
There are scripts for different shells which can be sourced to replace `clear` and `CTRL+L` with this program.
The scripts are located in `misc/shell/`.
| Shell | Script |
|:------|:-------------|
| ZSH | `wipe.zsh` |
| Fish | `wipe.fish` |
### Arch Linux
There is an [AUR package](https://aur.archlinux.org/packages/wipe-term) called `wipe-term`.
The zsh script can be sourced like this:
The scripts can be integrated as follows:
#### ZSH
Put this into your `.zshrc`:
```shell
source /usr/share/zsh/plugins/wipe/wipe.zsh
```
#### Fish
The package will place the script under `/usr/share/fish/vendor_conf.d/`
which will be sourced by `fish` with no further configuration required.
## Showcase
[![Animation 1](misc/rec-1.gif)]()
[![Animation 2](misc/rec-2.gif)]()
[![Animation 3](misc/rec-3.gif)]()
[![Animation 1](misc/res/rec-1.gif)]()
[![Animation 2](misc/res/rec-2.gif)]()
[![Animation 3](misc/res/rec-3.gif)]()

View File

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

View File

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

View File

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

7
misc/shell/wipe.fish Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env fish
function clear
command wipe
end
bind \cl 'wipe; commandline -f repaint'