Created
August 5, 2024 12:42
-
-
Save f0nZ/40930816e53264272f9793577d8c9693 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Specify the file name | |
file_name=".zshrc" | |
file_path="$HOME/$file_name" | |
# Create the file and append content | |
echo "alias j21='export JAVA_HOME=\`/usr/libexec/java_home -v 12\`; java -version'" >> $file_path | |
echo "alias j17='export JAVA_HOME=\`/usr/libexec/java_home -v 12\`; java -version'" >> $file_path | |
echo "alias j11='export JAVA_HOME=\`/usr/libexec/java_home -v 11\`; java -version'" >> $file_path | |
echo "alias j8='export JAVA_HOME=\`/usr/libexec/java_home -v 1.8\`; java -version'" >> $file_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment