Skip to content

Commit

Permalink
adds tools to be installed on first usage (after migrating to new sys…
Browse files Browse the repository at this point in the history
…tem)
  • Loading branch information
Lars Gohlke committed Jan 6, 2025
1 parent d45bab1 commit 6a739ef
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions init_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,24 @@ fi
# shellcheck disable=SC2155
export BREW_PREFIX=$(brew --prefix)

alias _info='echo -n "🐛"; echo'
function __lazy_install() {
local cmd=$1

if [[ -n ${DEBUG_LAZY_INSTALL:-} ]]; then
_info "check '${cmd}' installed?"
fi

if ! command -v "$cmd" >/dev/null; then
if [[ -n ${DEBUG_LAZY_INSTALL:-} ]]; then
_info " '${cmd}' missing 🔜 installed"
fi
echo "installing '$cmd'"
brew install "$cmd"
fi
if [[ -n ${DEBUG_LAZY_INSTALL:-} ]]; then
_info " '${cmd}' installed ✅ "
fi
}

__lazy_install wget
Expand Down
19 changes: 19 additions & 0 deletions tools/system_macosx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

if [[ ${platform} != "darwin" ]]; then
return
fi


function init_installed_programs(){
local DEBUG_LAZY_INSTALL=1

# window placement
brew install rectangle

# icon placement
brew install jordanbaird-ice


brew install --cask jetbrains-toolbox
}

0 comments on commit 6a739ef

Please sign in to comment.