Skip to content

Commit

Permalink
new rr alias (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 authored Aug 24, 2024
1 parent b8bc014 commit 2571357
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions files/topherrc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ function rds_ip_address() {
aws rds describe-db-instances --output=json --region=us-east-1 |
jq ".DBInstances[] | select(.DBInstanceIdentifier==\"$1\") | .Endpoint.Address" -r
}

# rerun the previous command until it succeeds
function rr {
trap "echo 'Interrupted'; return" INT
while ! eval "$(fc -ln -1)"; do
sleep 0.5
done
}

### END COMMAND LINE ALIASES ###

### INSTALL AND CONFIGURE APPLICATIONS ###
Expand Down

0 comments on commit 2571357

Please sign in to comment.