Skip to content

Commit

Permalink
1/31/2025 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Feb 1, 2025
1 parent 4d101c9 commit 200a4cd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .10_macos.bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fi

# Homebrew packages
if command -v brew &> /dev/null; then
command -v dive > /dev/null || brew install dive
command -v gawk > /dev/null || brew install gawk
command -v gdate > /dev/null || brew install coreutils
command -v gsed > /dev/null || brew install gnu-sed
Expand Down Expand Up @@ -59,6 +60,13 @@ flush() {
sudo killall -HUP mDNSResponder
}

# macOS DHCP renew
# @link https://apple.stackexchange.com/a/17429
renew() {
sudo ipconfig set en0 BOOTP
sudo ipconfig set en0 DHCP
}


##### Aliases #####

Expand Down
8 changes: 8 additions & 0 deletions .20_docker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ __docker_funcs() {
command docker-compose "$@"
}
fi
# Start docker before commands that need it
for command in \
dive \
tilt \
; do if command -v "${command}" &> /dev/null; then
# shellcheck disable=SC2139
alias "${command}"="docker ps &> /dev/null; command \"${command}\""
fi; done

# Execute `sh` interactively in an Alpine container
alias dalpine="docker run --interactive --tty --rm alpine:latest sh --"
Expand Down

0 comments on commit 200a4cd

Please sign in to comment.