Skip to content

Commit ed11b86

Browse files
committed
Merge branch 'master' of github.com:AndrewRayCode/configs
2 parents 39cef32 + 942e79a commit ed11b86

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

.bashrc

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -369,30 +369,11 @@ extract () {
369369
fi
370370
}
371371

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

377-
shc() {
378-
# If no inputs, ssh to main
379-
if [ -z $1 ]; then
380-
ssh ct
381-
else
382-
# If it's in config file, ssh to it regularly
383-
if [ -n "$(cat ~/.ssh/config | grep "Host $1")" ]; then
384-
ssh $1
385-
# Otherwise tunnel to it
386-
else
387-
ssh -t ct "ssh -t $1";
388-
fi
389-
fi
390-
}
391-
392-
prod() {
393-
osascript ~/prod.applescript
394-
}
395-
396377
pullreq() {
397378
[ -z $BRANCH ] && BRANCH="dev"
398379
HEAD=$(git symbolic-ref HEAD 2> /dev/null)

0 commit comments

Comments
 (0)