diff options
Diffstat (limited to '.local/share/bin/m3uprefix')
-rwxr-xr-x | .local/share/bin/m3uprefix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/share/bin/m3uprefix b/.local/share/bin/m3uprefix new file mode 100755 index 0000000..c5ab206 --- /dev/null +++ b/.local/share/bin/m3uprefix @@ -0,0 +1,9 @@ +#!/bin/bash + +fullfile=$1 + +filename=$(basename -- "$fullfile") +filename="${filename%.*}" + +nvim "+%s/^[^#]/$filename\/&/g" "+wq" "$fullfile" + |