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"