Compare commits
1 Commits
199e17853f
...
ab0772be9c
Author | SHA1 | Date | |
---|---|---|---|
ab0772be9c |
@ -15,10 +15,7 @@ if [ ! -z "$@" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
elif [[ "$@" == \!\!* ]]; then
|
elif [[ "$@" == \!\!* ]]; then
|
||||||
echo "!!-- Type your search query to find files"
|
echo "Type your search query to find files"
|
||||||
echo "!!-- To search again type !<search_query>"
|
|
||||||
echo "!!-- To search parent directories type ?<search_query>"
|
|
||||||
echo "!!-- You can print this help by typing !!"
|
|
||||||
elif [[ "$@" == \?* ]]; then
|
elif [[ "$@" == \?* ]]; then
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
echo "$line" \?\?
|
echo "$line" \?\?
|
||||||
@ -27,8 +24,5 @@ if [ ! -z "$@" ]; then
|
|||||||
fd -t file "${QUERY#!}" $HOME/Documents 2>&1 | grep -v 'Permission denied\|Input/output error'
|
fd -t file "${QUERY#!}" $HOME/Documents 2>&1 | grep -v 'Permission denied\|Input/output error'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "!!-- Type your search query to find files"
|
echo "Type your search query to find files"
|
||||||
echo "!!-- To seach again type !<search_query>"
|
|
||||||
echo "!!-- To seach parent directories type ?<search_query>"
|
|
||||||
echo "!!-- You can print this help by typing !!"
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user