bashrc & zshrc: add alias ssh-pubkey-length to show length of public SSH key & add MSDOS aliases cls, help and ipconfig.

This commit is contained in:
Mika Suomalainen 2012-09-15 10:12:17 +03:00
parent fc868976f3
commit 05bb05d2c5
2 changed files with 16 additions and 0 deletions

8
bashrc
View File

@ -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

8
zshrc
View File

@ -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