fg &>/dev/null ||:
}
-sm() {
+sm() { # switch mail host
local tmp keyhash
c /
# run latest
s jrun switch-mail-host "$@"
return $ret
}
+sh2() { # switch host2
+ local tmp keyhash
+ c /
+ # run latest
+ keyhash=$(s ssh-keygen -lf /root/.ssh/home | awk '{print $2}')
+ tmp=$(s ssh-add -l | awk '$2 == "'$keyhash'"')
+ if [[ ! $tmp ]]; then
+ s ssh-add /root/.ssh/home
+ fi
+ install-my-scripts
+ s jrun switch-host2 "$@"
+ return $ret
+}
# shellcheck disable=SC2120
lipush() {