aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/m3uprefix
blob: c5ab2065980befc585a622d7cd3afc2090a410eb (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

fullfile=$1

filename=$(basename -- "$fullfile")
filename="${filename%.*}"

nvim "+%s/^[^#]/$filename\/&/g" "+wq" "$fullfile"