commit 3c0c921

hovercats  ·  2023-11-23 06:13:33 +0000 UTC
parent 382fc61
bmks: fix del function not working properly
1 files changed,  +2, -2
+2, -2
 1@@ -37,8 +37,8 @@ go_to() {
 2 }
 3 
 4 del() {
 5-	sed "/$(sort "${bookmarks}" | dmenu -c -i -l 10)/d" "${bookmarks}" > _
 6-	mv -f _ "${bookmarks}"
 7+	grep -v "$(sort ${bookmarks} | dmenu -c -i -l 10)" "${bookmarks}" > _ \
 8+	&& mv -f _ "${bookmarks}"
 9 }
10 
11 [ ! -d "${file_path}" ] && mkdir -p "${file_path}"