This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function party { | |
if ! command -v figlet; then | |
if ! command -v brew; then | |
echo Requires figlet or brew to be installed | |
return 1 | |
fi | |
brew install figlet | |
fi | |
if [ -z "$1" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deploy_pubkey() { | |
return $( cat ~/.ssh/id_rsa.pub | `which ssh` "$@" 'cat - >> ~/.ssh/authorized_keys' ) | |
} | |
function ssh() | |
{ | |
args="$@" | |
ssh=`which ssh` | |
$ssh -oBatchMode=yes $args : 2>&1 >/dev/null | |
if [ $? -eq 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cd..() { | |
if [ -z $1 ]; then | |
cd .. | |
else | |
grep "\/" <<<$1 &>/dev/null |