mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 10:42:55 +01:00
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:
parent
fc868976f3
commit
05bb05d2c5
8
bashrc
8
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
|
||||
|
8
zshrc
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user