소스 검색

Update the nukehost function.

master
Mitchell Tishmack 6 년 전
committed by Mitch Tishmack
부모
커밋
a94703a3e0
1개의 변경된 파일과 3개의 추가작업 그리고 6개의 파일을 삭제
  1. +3
    -6
      dotprofile.org

+ 3
- 6
dotprofile.org 파일 보기

@@ -94,12 +94,9 @@ push_env()
# host key changes.
nukehost()
{
if [ -z "$1" ]; then
echo "Usage: nukehost <hostname>"
echo " Removes <hostname> from ssh known_host file."
else
sed -i -e "/$1/d" ~/.ssh/known_hosts
fi
for x in $(echo $*); do
sed -i -e "/$x/d" ~/.ssh/known_hosts
done
}

# Cheap copy function to make copying a file via ssh from one host


불러오는 중...
취소
저장