aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshow4
1 files changed, 2 insertions, 2 deletions
diff --git a/show b/show
index 46061d8..822e27f 100755
--- a/show
+++ b/show
@@ -41,7 +41,7 @@ fi
# Dispatch
#find $DOCS -iname "*$ITEM*" | head -1 | while read entry; do xdg-open "$entry"; done
-cd $DOC && grep -- "$ITEM" $LIST | while read entry; do
+grep -- "$ITEM" $LIST | while read entry; do
echo "Opening $entry..."
- xdg-open "$entry"
+ cd $DOC && xdg-open "$entry"
done