mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-19 15:11:03 +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
|
# Incasesensitive grepping
|
||||||
alias grep="grep -i"
|
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 .
|
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
||||||
|
|
||||||
# .aliases
|
# .aliases
|
||||||
|
8
zshrc
8
zshrc
@ -285,6 +285,14 @@ alias refreshgroups="exec su -l $USER"
|
|||||||
# Incasesensitive grepping
|
# Incasesensitive grepping
|
||||||
alias grep="grep -i"
|
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
|
# .aliases
|
||||||
if [ -f ~/.aliases ]; then
|
if [ -f ~/.aliases ]; then
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user