Skip to content

Instantly share code, notes, and snippets.

@benyanke
Created April 17, 2017 20:07
Show Gist options
  • Save benyanke/a5b65d941f4141d320115ef2ae420214 to your computer and use it in GitHub Desktop.
Save benyanke/a5b65d941f4141d320115ef2ae420214 to your computer and use it in GitHub Desktop.
function htop() {
if [ "$1" == '' ] ; then
$(which htop)
else
clear
printf "\n\n\n\n"
printf "Connecting to $1"
printf "\n\n"
sleep 0.2
ssh -t $1 htop
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment