Add a alias to remove old host sshkey
This commit is contained in:
parent
9a2b341720
commit
326cecec4e
7
zshrc
7
zshrc
|
@ -330,12 +330,17 @@ alias stat_sys="echo ' ' && uname -a && echo ' '&& uptime &&echo ' '&& df && ech
|
|||
#####FONCTIONS
|
||||
######################################
|
||||
|
||||
# SSH
|
||||
function clearsshkey() {
|
||||
sed -i "${1}d" ~/.ssh/known_hosts
|
||||
}
|
||||
|
||||
|
||||
## Verrouiller le shell avec vlock
|
||||
#function TRAPALRM() { vlock }
|
||||
|
||||
##Cree le repertoire et va dedans
|
||||
function mkcd() {
|
||||
#mkdir $1 && cd $1
|
||||
mkdir $1 && cd $_
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue