From 57f2b1100d287b011093c1199e649fda038cb2e4 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 9 Sep 2022 00:08:43 +0200 Subject: [PATCH] archwiki script improvement --- .local/share/scripts/arch-wiki.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/share/scripts/arch-wiki.sh b/.local/share/scripts/arch-wiki.sh index 12b042f..40aceb7 100755 --- a/.local/share/scripts/arch-wiki.sh +++ b/.local/share/scripts/arch-wiki.sh @@ -9,7 +9,7 @@ set -e DOC_DIR="/usr/share/doc/arch-wiki/html/en/" cd "$DOC_DIR" -selected=$(find -type f | cut -c3- | rev | cut -c6- | rev | tr _ ' ' | fzf -q "$1") +selected=$(find . -type f | cut -c3- | rev | cut -c6- | rev | tr _ ' ' | fzf -q "$1") selected_file=$(echo "$selected" | tr ' ' _ | awk -v var="$DOC_DIR" '{print var $0 ".html"}') xdg-open "$selected_file"