Skip to content

Commit

Permalink
update installed jdks
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsEckart committed Apr 19, 2024
1 parent 459ff76 commit 9533c46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version"
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version"
alias j17="export JAVA_HOME=`/usr/libexec/java_home -v 17`; java -version"
alias j19="export JAVA_HOME=`/usr/libexec/java_home -v 19`; java -version"
alias j20="export JAVA_HOME=`/usr/libexec/java_home -v 20`; java -version"
alias j21="export JAVA_HOME=`/usr/libexec/java_home -v 21`; java -version"
alias j22="export JAVA_HOME=`/usr/libexec/java_home -v 22`; java -version"
alias j23="export JAVA_HOME=`/usr/libexec/java_home -v 23`; java -version"
alias graal="export JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-jdk-21.0.2+13.1/Contents/Home"

# bat instead of cat
#alias cat='bat --style=plain'
Expand Down
5 changes: 3 additions & 2 deletions mac-setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# go through https://registerspill.thorstenball.com/p/new-year-new-job-new-machine and update this script

# Ask for the administrator password upfront
sudo -v

Expand Down Expand Up @@ -132,7 +134,7 @@ defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Disables automatic period substitutions
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
# Disables smart quotes
# Disables smart quotes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false


Expand Down Expand Up @@ -503,4 +505,3 @@ defaults write com.apple.ActivityMonitor NetworkGraphType -int 1
# defaults write com.apple.ActivityMonitor IconType -int 0

echo "Done. Note that some of these changes require a logout/restart to take effect."

0 comments on commit 9533c46

Please sign in to comment.