From 5ed36c45d617eb9c26258772ac35aa4cb54ce0ee Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Fri, 3 Jan 2020 14:32:19 -0500 Subject: [PATCH] updated Darwin support --- .bash_profile | 2 +- .bashrc | 1 + bin/clean-stale-images | 4 +++- bin/kubeconfig.bash | 2 ++ bin/openssl-brew-config.bash | 4 ++++ 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 bin/kubeconfig.bash create mode 100644 bin/openssl-brew-config.bash diff --git a/.bash_profile b/.bash_profile index b45e64f..76bb771 100644 --- a/.bash_profile +++ b/.bash_profile @@ -2,5 +2,5 @@ # Get the aliases and functions if [ -f ~/.bashrc ]; then - . ~/.bashrc + . ~/.bashrc fi diff --git a/.bashrc b/.bashrc index 7fdb424..2fd4db7 100644 --- a/.bashrc +++ b/.bashrc @@ -1,5 +1,6 @@ test -f /etc/bashrc && . /etc/bashrc || true test -f /etc/bash_completion && . /etc/bash_completion || true +test -f /usr/local/etc/bash_completion && . "/usr/local/etc/bash_completion" || true test -f $HOME/.bash_aliases && . $HOME/.bash_aliases || true export MINIKUBE_WANTUPDATENOTIFICATION=true diff --git a/bin/clean-stale-images b/bin/clean-stale-images index 51f8826..233622d 100755 --- a/bin/clean-stale-images +++ b/bin/clean-stale-images @@ -1,2 +1,4 @@ #!/bin/bash -docker images -q -f dangling=true | xargs --no-run-if-empty --delim='\n' docker rmi +for i in $(docker images -q -f dangling=true) ; do + docker rmi $i +done diff --git a/bin/kubeconfig.bash b/bin/kubeconfig.bash new file mode 100644 index 0000000..1fc1d02 --- /dev/null +++ b/bin/kubeconfig.bash @@ -0,0 +1,2 @@ +#!/bin/bash +export KUBECONFIG=~/.kube/config:~/.kube/config.preprod diff --git a/bin/openssl-brew-config.bash b/bin/openssl-brew-config.bash new file mode 100644 index 0000000..60c0d58 --- /dev/null +++ b/bin/openssl-brew-config.bash @@ -0,0 +1,4 @@ +#!/bin/bash +export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" +export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" +export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"