From fc337c6d8586cba2188275022b1a934d672ecafe Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Mon, 13 Jul 2020 16:15:11 +0200 Subject: [PATCH] aliases for txt transformation --- dot_aliases/misc.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_aliases/misc.sh b/dot_aliases/misc.sh index 04966f7..04a12c8 100755 --- a/dot_aliases/misc.sh +++ b/dot_aliases/misc.sh @@ -19,6 +19,13 @@ alias current_time='current_hour' # FIXME : register the alias only if browser is Chrome based (Google Chrome/Brave/etc) 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'" +# 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 to_lower='lowercase' +alias to_upper='uppercase' alias tryhook='pre-commit try-repo .' alias whatyear='current_year' alias whathour='current_time'