fixed a lot of stuff
This commit is contained in:
@@ -3,10 +3,13 @@ function search
|
||||
echo "Usage: search <string> [directory]"
|
||||
return 1
|
||||
end
|
||||
if not command -q rg
|
||||
echo "search: 'rg' (ripgrep) is not installed. Install it via your package manager."
|
||||
return 1
|
||||
end
|
||||
|
||||
set query $argv[1]
|
||||
set dir "."
|
||||
|
||||
if test (count $argv) -ge 2
|
||||
set dir $argv[2]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user