From 05bb05d2c593a24dbd5a9eaf2f7d0381707c2c77 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Sat, 15 Sep 2012 10:12:17 +0300 Subject: [PATCH] bashrc & zshrc: add alias ssh-pubkey-length to show length of public SSH key & add MSDOS aliases cls, help and ipconfig. --- bashrc | 8 ++++++++ zshrc | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/bashrc b/bashrc index a9038e33..2f083300 100755 --- a/bashrc +++ b/bashrc @@ -336,6 +336,14 @@ alias refreshgroups="exec su -l $USER" # Incasesensitive grepping alias grep="grep -i" +# Get public key lenght of (public) SSH key +alias ssh-pubkey-length="ssh-keygen -lf " + +# MSDOS commands. MSDOS is after every alias line to get these lines easily by grepping. +alias cls=clear # MSDOS +alias help=man # MSDOS +alias ipconfig=ifconfig # MSDOS + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 3cf4380e..54d2fde2 100755 --- a/zshrc +++ b/zshrc @@ -285,6 +285,14 @@ alias refreshgroups="exec su -l $USER" # Incasesensitive grepping alias grep="grep -i" +# Get public key lenght of (public) SSH key +alias ssh-pubkey-length="ssh-keygen -lf " + +# MSDOS commands. MSDOS is after every alias line to get these lines easily by grepping. +alias cls=clear # MSDOS +alias help=man # MSDOS +alias ipconfig=ifconfig # MSDOS + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases