Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
15
.bin/OLD/bookmarks
Executable file
15
.bin/OLD/bookmarks
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
clean() {
|
||||
cat ~/.browser_history \
|
||||
| sort -k 3 \
|
||||
| uniq -f2 \
|
||||
| sort \
|
||||
> /tmp/browser_history \
|
||||
&& mv /tmp/browser_history ~/.browser_history
|
||||
echo done.
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
clean) clean; ;;
|
||||
*) vim ~/.browser_history; ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user