diff --git a/Makefile b/Makefile index 8c15632..3d717fa 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ sh: cp -f sh/tmenu $(DESTDIR)$(PREFIX)/bin cp -f sh/tmenu-backend $(DESTDIR)$(PREFIX)/bin cp -f sh/tmenu_run $(DESTDIR)$(PREFIX)/bin + cp -f sh/ss $(DESTDIR)$(PREFIX)/bin mkc: c/scream c/timer c/boid c/anaconda c/colors diff --git a/sh/ss b/sh/ss new file mode 100755 index 0000000..0dec028 --- /dev/null +++ b/sh/ss @@ -0,0 +1,12 @@ +#!/bin/sh + +scripts="$( + find /home/usr/git/utils/sh /home/usr/git/utils/c -type f | + grep -v '\.git' | + xargs file | + grep 'C source \|POSIX shell script' | + awk -F':' '{print $1}' | + fzy +)" + +[ -z "$scripts" ] || nvim "$scripts"