summaryrefslogtreecommitdiff
path: root/.local/bin/searchdb
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-02-07 18:03:41 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-02-07 18:03:41 +0530
commit5940d14ddbdb6f68869f48351083875b11b6abf7 (patch)
tree9a5cc0f1268933ca0d5a1a7d2882e93766c25250 /.local/bin/searchdb
parent18507fd21b7a7709133d8f3049c683e1abffcda2 (diff)
preview updates
Diffstat (limited to '.local/bin/searchdb')
-rwxr-xr-x.local/bin/searchdb35
1 files changed, 0 insertions, 35 deletions
diff --git a/.local/bin/searchdb b/.local/bin/searchdb
deleted file mode 100755
index 57e3fa8..0000000
--- a/.local/bin/searchdb
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-help() {
- echo "searchdb - update local search database
-
-USAGE:
- searchdb [OPTION]...
-
-OPTIONS:
- -x clear all databases
- -h show this help message"
-}
-
-err() { printf 'searchdb: %s\n' "$@" >&2; exit 1; }
-while getopts 'xh' o; do case "$o" in
- x) rm -rf ~/.cache/search; exit ;;
- h) help >&2; exit ;;
- *) err "invalid option -- '$OPTARG'" ;;
-esac done
-shift $((OPTIND - 1))
-
-rm -rf ~/.cache/search
-export SEARCHDB="$HOME/.cache/search"
-mkdir -p "$SEARCHDB" || exit
-ln -sf /usr/share/dict/words "$SEARCHDB/word"
-
-tldr --list > "$SEARCHDB/tldr"
-apropos . > "$SEARCHDB/man"
-pacman -Ss | sed -e "N;s/\n\s*/ => /" > "$SEARCHDB/pacman"
-
-list() { find -L "$@" ! -wholename '*/.git*' -printf "%P\n"; }
-list /usr/share/doc > "$SEARCHDB/wiki"
-list ~/.local/share/Zeal/Zeal/docsets > "$SEARCHDB/docs"
-list -L "/run/media/$USER/Storage/Media" > "$SEARCHDB/media"
-list "/run/media/$USER/Storage/Library" > "$SEARCHDB/library"