summaryrefslogtreecommitdiff
path: root/conf.d/90-alias.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/90-alias.zsh')
-rw-r--r--conf.d/90-alias.zsh8
1 files changed, 7 insertions, 1 deletions
diff --git a/conf.d/90-alias.zsh b/conf.d/90-alias.zsh
index da6219d..610fdce 100644
--- a/conf.d/90-alias.zsh
+++ b/conf.d/90-alias.zsh
@@ -36,7 +36,13 @@ alias ta='task add'
alias pe=patchelf
alias -g L='| less '
-alias -g F='| rg -i '
+
+if (($+commands[rg])); then
+ alias -g F='| rg -i '
+else
+ alias -g F='| grep -i '
+fi
+
alias -g X='| xargs '
alias -g SDN=' >/dev/null '
alias -g EDN=' 2>/dev/null '