aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/gore.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/gore.sh')
-rw-r--r--sh/shrc.d/gore.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/shrc.d/gore.sh b/sh/shrc.d/gore.sh
index 1df637bb..2cdb8bd6 100644
--- a/sh/shrc.d/gore.sh
+++ b/sh/shrc.d/gore.sh
@@ -10,7 +10,8 @@ gore() {
set -- --color=always "$@"
# Run whatever `grep` gives us; it might be our function wrapper; that's OK
- grep "$@" |
+ # Include -n to show line numbers; this is POSIX, which was a nice surprise
+ grep -n "$@" |
# Run the appropriate pager; if it's less(1), we can tack on -R (though my
# ~/.lesskey does this anyway)