From badbba41476cd6fd424042c48681acde82227ba6 Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Thu, 4 Apr 2024 00:50:55 -0600 Subject: Add support for aliases to the `which` command The `which` command is not necessarily a builtin, however, it can display shell aliases. This patch adds a line into dist/etc/dwvshrc, which allows /usr/bin/which to detect our shell aliases, and print them. --- dist/etc/dwvshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/etc/dwvshrc b/dist/etc/dwvshrc index 7f7314e..30db65a 100644 --- a/dist/etc/dwvshrc +++ b/dist/etc/dwvshrc @@ -1,5 +1,8 @@ #!/usr/bin/env dwvsh +# 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 -- cgit v1.2.3