We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1458e54 commit 942e79aCopy full SHA for 942e79a
1 file changed
.bashrc
@@ -502,30 +502,11 @@ extract () {
502
fi
503
}
504
505
-# Tail a file and search for a pattern
+# Tail a file and search for a pattern, and colorize the matches (I think?)
506
t() {
507
tail -f $1 | perl -pe "s/$2/\e[1;31;43m$&\e[0m/g"
508
509
510
-shc() {
511
- # If no inputs, ssh to main
512
- if [ -z $1 ]; then
513
- ssh ct
514
- else
515
- # If it's in config file, ssh to it regularly
516
- if [ -n "$(cat ~/.ssh/config | grep "Host $1")" ]; then
517
- ssh $1
518
- # Otherwise tunnel to it
519
520
- ssh -t ct "ssh -t $1";
521
- fi
522
523
-}
524
-
525
-prod() {
526
- osascript ~/prod.applescript
527
528
529
pullreq() {
530
[ -z $BRANCH ] && BRANCH="dev"
531
HEAD=$(git symbolic-ref HEAD 2> /dev/null)
0 commit comments