bash: umleitung in /dev/null
This commit is contained in:
parent
d17a3eabe7
commit
2f81dbaabd
1 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
function sgc {
|
||||
case "$1" in
|
||||
--help)
|
||||
|
@ -51,7 +52,7 @@ function rgf {
|
|||
if [ -z "$1" ]; then
|
||||
echo "Suchbegriff fehlt..."
|
||||
else
|
||||
if [[ $(which rg) ]]; then
|
||||
if [[ $(which rg &> /dev/null) ]]; then
|
||||
rg --files -g *"$1"* --hidden
|
||||
else
|
||||
echo "ripgrep ist nicht installiert... suche mit 'find'"
|
||||
|
@ -69,7 +70,7 @@ function rgi {
|
|||
if [ -z "$1" ]; then
|
||||
echo "Suchbegriff fehlt..."
|
||||
else
|
||||
if [[ $(which rg) ]]; then
|
||||
if [[ $(which rg &> /dev/null) ]]; then
|
||||
rg -i "$1"
|
||||
else
|
||||
echo "ripgrep ist nicht installiert... suche mit 'grep'"
|
||||
|
|
Loading…
Reference in a new issue