summaryrefslogtreecommitdiffstats
path: root/dist/etc/linuxrc
diff options
context:
space:
mode:
authorRory Dudley2024-08-09 18:57:07 -0600
committerRory Dudley2024-08-09 19:15:26 -0600
commitf94b2c5546dda28d558a12b5b1ba6ac3faa447c2 (patch)
tree766c4e57546dcd89f72c83371adb10236f7e5bd4 /dist/etc/linuxrc
parent3f23ad58d2d0d1bd506a5d52bdf2d24c803f2105 (diff)
downloaddwarvish-f94b2c5546dda28d558a12b5b1ba6ac3faa447c2.tar.gz
Split OS-specific run commands into a different file
Do not run certain commands, except on specific operating systems, when calling the global run command file. This allows users to avoid having unaliases and unsets in their user-defined rc file (~/.dwvshrc). Signed-off-by: Rory Dudley <rory@netc.lu>
Diffstat (limited to 'dist/etc/linuxrc')
-rw-r--r--dist/etc/linuxrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dist/etc/linuxrc b/dist/etc/linuxrc
new file mode 100644
index 0000000..4a90d3a
--- /dev/null
+++ b/dist/etc/linuxrc
@@ -0,0 +1,7 @@
+#!/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'