Add a alias to remove old host sshkey

This commit is contained in:
Jeremy Gardais 2017-02-23 12:06:33 +01:00
parent 9a2b341720
commit 326cecec4e
1 changed files with 6 additions and 1 deletions

7
zshrc
View File

@ -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 $_
}