aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-11-02 18:46:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-11-02 18:46:45 -0300
commit04451c17a85485fc3df3bca28dc3179be699651f (patch)
treec2045e7e902b025e6584156115d86885f8f55141
parent1e5b4c703fb61250046e116d362d14e9e30cc9c8 (diff)
downloadscripts-04451c17a85485fc3df3bca28dc3179be699651f.tar.gz
scripts-04451c17a85485fc3df3bca28dc3179be699651f.tar.bz2
Feat: show: fixes (5)
-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