commit f27ab50
hovercats
·
2024-11-11 15:13:49 +0000 UTC
parent 1abcf3e
bmks: have h flag just run the printf for help instead of having it in a separate function
1 files changed,
+1,
-5
M
rc/bmks
M
rc/bmks
+1,
-5
1@@ -6,10 +6,6 @@ file_path=$HOME/etc/bmks
2 filename=urls
3 bookmarks=$file_path/$filename
4
5-fn usage {
6- printf 'Usage: bmks a|c|h|d|l\n'
7-}
8-
9 fn add {
10 if (! ~ $2 0) description=`{printf '' | dmenu -c -p 'Description: '}
11 if not printf 'No url\n' && exit 1
12@@ -46,7 +42,7 @@ switch($1) {
13 test -d $file_path || mkdir -p $file_path
14 test -f $bookmarks || touch $bookmarks
15 case h
16- usage
17+ printf 'Usage: bmks a|c|h|d|l\n'
18 case d
19 del
20 case l