Skip to content

Commit

Permalink
Merge branch 'master' of github.com:AndrewRayCode/configs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRayCode committed Feb 25, 2020
2 parents 39cef32 + 942e79a commit ed11b86
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -369,30 +369,11 @@ extract () {
fi
}

# Tail a file and search for a pattern
# Tail a file and search for a pattern, and colorize the matches (I think?)
t() {
tail -f $1 | perl -pe "s/$2/\e[1;31;43m$&\e[0m/g"
}

shc() {
# If no inputs, ssh to main
if [ -z $1 ]; then
ssh ct
else
# If it's in config file, ssh to it regularly
if [ -n "$(cat ~/.ssh/config | grep "Host $1")" ]; then
ssh $1
# Otherwise tunnel to it
else
ssh -t ct "ssh -t $1";
fi
fi
}

prod() {
osascript ~/prod.applescript
}

pullreq() {
[ -z $BRANCH ] && BRANCH="dev"
HEAD=$(git symbolic-ref HEAD 2> /dev/null)
Expand Down

0 comments on commit ed11b86

Please sign in to comment.