diff --git a/.bashrc b/.bashrc index fa70daf..e295b0d 100644 --- a/.bashrc +++ b/.bashrc @@ -229,6 +229,20 @@ digfull() { dig +nocmd $1 any +multiline +noall +answer } +sshttp() { + if [ -z "$3" ] + then + port=80 + else + port=$3 + fi + + ssh -L 9000:$1:$port $2 +} + +sshttps() { + sshttp $1 $2 443 +} # ENVIRONMENT NPM_PACKAGES="${HOME}/.npm-packages"