1
0
mirror of https://github.com/akelge/zsh synced 2025-07-01 20:29:13 +00:00

Changed delkey to a function

Before delkey was an alias and could only be invoked passing
an host as argument, now it accepts also user@host, will clean
up the argument and delkey
This commit is contained in:
2024-11-19 20:12:27 +01:00
parent a9abfcda86
commit 788055e8d3
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ alias ptr='host -t ptr'
# alias psg="ps ax|grep "
alias myip="dig +short ANY @resolver1.opendns.com myip.opendns.com"
alias delkey="ssh-keygen -R "
# alias delkey="ssh-keygen -R "
alias k=kubectl
alias kk='kubectl konfig merge ~/.kube/configs/* > ~/.kube/config'

View File

@ -0,0 +1 @@
ssh-keygen -R $(echo $1|cut -d@ -f2)