diff options
| author | filip <“filip.rabiega@gmail.com”> | 2026-02-14 17:18:10 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2026-02-14 17:18:10 +0100 |
| commit | d1ec85edcfb34f40f35759f59e66f2205d905aae (patch) | |
| tree | 3707fbf2fae5eb07fbfc2e3c42ffb6aafa436e66 /se | |
| parent | 0dea101a038ba195048b4d0bc704f203d9cd1316 (diff) | |
| download | chadscripts-d1ec85edcfb34f40f35759f59e66f2205d905aae.tar.gz chadscripts-d1ec85edcfb34f40f35759f59e66f2205d905aae.tar.bz2 chadscripts-d1ec85edcfb34f40f35759f59e66f2205d905aae.zip | |
add se texclear samedir openmd installfont fzo drecord
Diffstat (limited to 'se')
| -rwxr-xr-x | se | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#!/bin/sh + +: "${EDITOR:=${VISUAL:=vi}}" +: "${SCRIPTS:=$HOME/.scripts}" + +file=$( + find "$SCRIPTS" -maxdepth 2 -type f -readable \ + -not -path '*/.git/*' \ + -or -not -name '\.*' 2>/dev/null | + sed 's|^\./||' | + sort --ignore-case --unique | + fzf --prompt="Open script > " \ + --preview 'sed -n "1,200p" {}' +) + +[ -n "$file" ] && "$EDITOR" "$file" |
