This commit is contained in:
Brian Zalewski 2023-12-05 18:07:50 +00:00
parent facc9a61a0
commit 5a5afbacbe
7 changed files with 22 additions and 11 deletions

View file

@ -1733,10 +1733,21 @@ softwarePlugins:
- github/gh-net - github/gh-net
- mislav/gh-cp - mislav/gh-cp
intellij-idea-ce: intellij-idea-ce:
cmd: bash -c 'idea.sh installPlugins "{PLUGIN}"' cmd: bash -c 'if ! cat "${XDG_CACHE_HOME:-$HOME/.cache}/install.doctor/intellij-idea-ce" | grep "${PLUGIN}" &> /dev/null; thenidea.sh installPlugins "{PLUGIN}" && mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/install.doctor" && echo "{PLUGIN}" >> "${XDG_CACHE_HOME:-$HOME/.cache}/install.doctor/intellij-idea-ce"; fi'
plugins: plugins:
- AngularJS
- app.pieces.plugins.jetbrains
- com.dmarcotte.handlebars
- com.github.copilot - com.github.copilot
- https://plugins.jetbrains.com/plugin/17328-pieces--save-search-share--reuse-code-snippets - com.jetbrains.edu
- com.jetbrains.rust
- com.wakatime.intellij.plugin
- Docker
- io.flutter
- NodeJS
- org.editorconfig.editorconfigjetbrains
- org.intellij.plugins.markdown
- org.jetbrains.completion.full.line
helm: helm:
cmd: bash -c '{PLUGIN}' cmd: bash -c '{PLUGIN}'
plugins: plugins:

View file

@ -118,6 +118,7 @@ ensurePackageManagerHomebrew() {
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?" bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || BREW_EXIT_CODE="$?"
if [ -n "$BREW_EXIT_CODE" ]; then if [ -n "$BREW_EXIT_CODE" ]; then
logg warn 'Homebrew was installed but part of the installation failed to complete successfully.' logg warn 'Homebrew was installed but part of the installation failed to complete successfully.'
fixHomebrewPermissions
fi fi
fi fi
fi fi
@ -127,7 +128,6 @@ ensurePackageManagerHomebrew() {
loadLinuxbrew loadLinuxbrew
ensurePackageManagerHomebrew ensurePackageManagerHomebrew
loadLinuxbrew loadLinuxbrew
fixHomebrewPermissions
### Enable auto-update service ### Enable auto-update service
if [ -d /Applications ] && [ -d System ]; then if [ -d /Applications ] && [ -d System ]; then

View file

@ -12,7 +12,7 @@
{{ includeTemplate "universal/logg" }} {{ includeTemplate "universal/logg" }}
if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/emsdk" ]; then if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/emsdk" ]; then
logg info 'Pulling latest changes for Emscripten source code' && git pull logg info 'Pulling latest changes for Emscripten source code' && cd "${XDG_DATA_HOME:-$HOME/.local/share}/emsdk" && git pull
logg info "Running emsdk install latest" && emsdk install latest > /dev/null logg info "Running emsdk install latest" && emsdk install latest > /dev/null
logg info "Running emsdk activate latest" && emsdk activate latest > /dev/null logg info "Running emsdk activate latest" && emsdk activate latest > /dev/null
logg info 'Profile source inclusions are already implemented in Bash / ZSH profile' logg info 'Profile source inclusions are already implemented in Bash / ZSH profile'

View file

@ -37,7 +37,10 @@ if [ -d /Applications ] && [ -d /System ]; then
logg info 'Emptying trash' && m trash clean logg info 'Emptying trash' && m trash clean
fi fi
logg info 'Checking if there is a pending update' logg info 'Checking if there is a pending update'
defaults read /Library/Updates/index.plist InstallAtLogout defaults read /Library/Updates/index.plist InstallAtLogout || EXIT_CODE=$?
if [ -n "$EXIT_CODE" ]; then
logg info 'No pending update discovered by checking /Library/Updates/index.plist'
fi
elif [ -f /var/run/reboot-required ]; then elif [ -f /var/run/reboot-required ]; then
logg info '/var/run/reboot-required is present so a reboot is required' logg info '/var/run/reboot-required is present so a reboot is required'
fi fi

View file

@ -23,8 +23,8 @@ if [ -d "/home/linuxbrew/.linuxbrew/bin" ]; then
export WHALEBREW_INSTALL_PATH="/home/linuxbrew/.linuxbrew/whalebrew" export WHALEBREW_INSTALL_PATH="/home/linuxbrew/.linuxbrew/whalebrew"
elif [ -f "/usr/local/bin/brew" ]; then elif [ -f "/usr/local/bin/brew" ]; then
eval "$(/usr/local/bin/brew shellenv)" eval "$(/usr/local/bin/brew shellenv)"
elif [ -f "/opt/homebrew/bin/brew" ]; then elif [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
fi fi
export HOMEBREW_NO_ANALYTICS=1 export HOMEBREW_NO_ANALYTICS=1

View file

@ -12,9 +12,6 @@
# #
# [Systemd Unit file](https://github.com/megabyte-labs/install.doctor/blob/master/home/dot_config/gitomatic/gitomatic.service.tmpl) # [Systemd Unit file](https://github.com/megabyte-labs/install.doctor/blob/master/home/dot_config/gitomatic/gitomatic.service.tmpl)
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
if command -v gitomatic > /dev/null && command -v jq > /dev/null && command -v yq > /dev/null && command -v git > /dev/null; then if command -v gitomatic > /dev/null && command -v jq > /dev/null && command -v yq > /dev/null && command -v git > /dev/null; then
if [ -d /Applications ] && [ -d /System ]; then if [ -d /Applications ] && [ -d /System ]; then
USER_FOLDER="/Users" USER_FOLDER="/Users"
@ -52,5 +49,5 @@ if command -v gitomatic > /dev/null && command -v jq > /dev/null && command -v y
done done
fi fi
else else
logg error 'gitomatic, jq, yq, and git should be installed!' && exit 1 echo 'gitomatic, jq, yq, and git should be installed!' && exit 1
fi fi