From 159ac666799565529840846a59fa56b3fcbcb707 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Fri, 17 Jul 2020 14:46:18 +0200 Subject: [PATCH] improve aliases portability --- dot_aliases/misc.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dot_aliases/misc.sh b/dot_aliases/misc.sh index 04a12c8..4255cc1 100755 --- a/dot_aliases/misc.sh +++ b/dot_aliases/misc.sh @@ -20,10 +20,11 @@ alias current_time='current_hour' alias meditate='browse chrome-extension://onjcfgnjjbnflacfbnjaapcbiecckilk/popup.html#fullscreen' alias runhooks='pre-commit run -a' # https://unix.stackexchange.com/a/205854/220566 -alias trim="awk '{\$1=\$1};1'" +alias trim='awk "{\$1=\$1};1"' +alias trem="awk '{\$1=\$1};1'" # via https://github.com/richinfante/dotfiles/blob/0e1df2d833257e3a3ca2e4fcc8f2f128d52b5d29/dotfiles/.profile_setup/30-aliases.sh -alias lowercase='tr "[:upper:]" "[:lower:]"' -alias uppercase='tr "[:lower:]" "[:upper:]"' +alias lowercase='tr "[[:upper:]]" "[[:lower:]]"' +alias uppercase='tr "[[:lower:]]" "[[:upper:]]"' alias to_lower='lowercase' alias to_upper='uppercase' alias tryhook='pre-commit try-repo .'