commit 3b4c815b199a98b6e0c02986bc6c4b651b0b823d
parent 6b8d53938b2f3f2c1aecdbeb1d3b20f01bc219c0
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sat, 27 Mar 2021 04:10:32 -0700
Add toupper and tolower shell functions
These functions use tr(1) to convert their input to uppercase or
lowercase respectively.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/local/shell/.config/shell/aliases b/local/shell/.config/shell/aliases
@@ -13,6 +13,8 @@ pkill() command pkill -x "$@"
reload() . "${ENV:?unset}"
sed() command sed -E "$@"
spm() tspm "$@"
+tolower() tr '[:upper:]' '[:lower:]'
+toupper() tr '[:lower:]' '[:upper:]'
c() command "$@"
d() doas "$@"