diff options
author | Rory Dudley | 2024-08-09 18:57:07 -0600 |
---|---|---|
committer | Rory Dudley | 2024-08-09 19:15:26 -0600 |
commit | f94b2c5546dda28d558a12b5b1ba6ac3faa447c2 (patch) | |
tree | 766c4e57546dcd89f72c83371adb10236f7e5bd4 | |
parent | 3f23ad58d2d0d1bd506a5d52bdf2d24c803f2105 (diff) | |
download | dwarvish-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>
-rw-r--r-- | dist/etc/dwvshrc | 6 | ||||
-rw-r--r-- | dist/etc/linuxrc | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/dist/etc/dwvshrc b/dist/etc/dwvshrc index 0db4ceb..7f7314e 100644 --- a/dist/etc/dwvshrc +++ b/dist/etc/dwvshrc @@ -1,11 +1,5 @@ #!/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' - # Default path export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin 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' |