summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRory Dudley2024-05-20 14:49:16 -0600
committerRory Dudley2024-05-20 14:49:16 -0600
commit6d39d319d54c5385e9db345e0ff5a9640cc4190d (patch)
treeef3cab0b927fabdbf6e940ab293a8e6cbc524a31
parentc91b512ef3a463a5e7e7884d232f11501207ceb3 (diff)
downloaddwarvish-6d39d319d54c5385e9db345e0ff5a9640cc4190d.tar.gz
Alias grep to always use color
In the global /etc/dwvshrc file, alias grep so that it always displays with color by default.
-rw-r--r--dist/etc/dwvshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/etc/dwvshrc b/dist/etc/dwvshrc
index 30db65a..0db4ceb 100644
--- a/dist/etc/dwvshrc
+++ b/dist/etc/dwvshrc
@@ -1,5 +1,8 @@
#!/usr/bin/env dwvsh
+# Alias the grep command
+alias grep='grep --color=always'
+
# Alias the which command
alias which='alias | /usr/bin/which --tty-only --read-alias --show-tilde --show-dot'