@@ -67,7 +67,7 @@ brews=(
6767 bat
6868 coreutils
6969 colima
70- docker
70+ docker
7171 docker-compose
7272 dfc # https://github.com/rolinh/dfc
7373 exa # https://the.exa.website/
@@ -95,7 +95,7 @@ brews=(
9595 postgresql
9696 pgcli
9797 pv # https://www.ivarch.com/programs/pv.shtml
98- python
98+ python
9999 osquery
100100 ruby
101101 shellcheck # https://www.shellcheck.net/
@@ -187,10 +187,10 @@ function install {
187187
188188function brew_install_or_upgrade {
189189 if brew ls --versions " $1 " > /dev/null; then
190- if (brew outdated | grep " $1 " > /dev/null); then
190+ if (brew outdated | grep " $1 " > /dev/null); then
191191 echo " Upgrading already installed package $1 ..."
192192 brew upgrade " $1 "
193- else
193+ else
194194 echo " Latest $1 is already installed"
195195 fi
196196 else
@@ -219,6 +219,7 @@ export HOMEBREW_NO_AUTO_UPDATE=1
219219
220220echo " Installing SDKs ..."
221221curl -s " https://get.sdkman.io" | bash
222+ # shellcheck source=/dev/null
222223source " $HOME /.sdkman/bin/sdkman-init.sh"
223224for sdk in " ${sdks[@]} "
224225do
@@ -250,7 +251,7 @@ if [[ -z "${CI}" ]]; then
250251 ssh-keygen -t rsa -b 4096 -C ${git_email}
251252 pbcopy < ~ /.ssh/id_rsa.pub
252253 open https://github.com/settings/ssh/new
253- fi
254+ fi
254255
255256echo " Setting up bash aliases ..."
256257echo "
@@ -260,6 +261,7 @@ alias cat=bat
260261" >> ~ /.bash_profile
261262# https://github.com/twolfson/sexy-bash-prompt
262263echo " Setting up bash prompt ..."
264+ # shellcheck source=/dev/null
263265(cd /tmp && ([[ -d sexy-bash-prompt ]] || git clone --depth 1 --config core.autocrlf=false https://github.com/twolfson/sexy-bash-prompt) && cd sexy-bash-prompt && make install) && source ~ /.bashrc
264266
265267
0 commit comments