From 51d5ecd91d4247a2accd060326ea6848b6881a41 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 12 Feb 2015 13:59:33 +0200 Subject: [PATCH] bashrc & zshrc: alias lowernocolon Closes #61 --- rc/bashrc | 4 ++++ rc/zshrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index ece92b48..38c4e19b 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -590,6 +590,10 @@ alias multicat='tail -n +1' # Getting SSIDs and keys from connmann (Jolla) alias connman-wlans='grep -E "Name|Passphrase" /var/lib/connman/wifi*/settings --no-filename' +# Turn input into lowercase and remove colons. +# Meant for SSL certificates (IRC)) +alias lowernocolon="tr -d ':' | tr 'A-Z' 'a-z'" + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/rc/zshrc b/rc/zshrc index a0f1304a..4a031006 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -565,6 +565,10 @@ alias multicat='tail -n +1' # Getting SSIDs and keys from connmann (Jolla) alias connman-wlans='grep -E "Name|Passphrase" /var/lib/connman/wifi*/settings --no-filename' +# Turn input into lowercase and remove colons. +# Meant for SSL certificates (IRC)) +alias lowernocolon="tr -d ':' | tr 'A-Z' 'a-z'" + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases