dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 8b8e0a09225473296a6a8d04b0f94099cc4c940c
parent 9118425533f3f710a84c9803e143b8c0c07649cb
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  2 May 2021 20:05:37 +0100

.s/b/lsswp: list {n,}vim swap files

Diffstat:
A.scripts/bin/lsswp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/.scripts/bin/lsswp b/.scripts/bin/lsswp @@ -0,0 +1,6 @@ +#!/bin/sh +# ls, for nvim swap files + +SWAP_PATH="${SWAP_PATH:-$HOME/.local/share/nvim/swap}" + +find "$SWAP_PATH" -type f | sed 's~.*/~~;s~\.sw[op]$~~' | tr '%' '/'