Last active
January 19, 2024 21:47
-
-
Save airstrike/7633952f06ce956bf6665c0bd02415be to your computer and use it in GitHub Desktop.
Installing modern SQLCL shell at NSU
This file contains 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 | |
# Navigate to home directory | |
cd ~ | |
# Create a 'downloads' directory in the home directory | |
mkdir -p ~/downloads | |
# Navigate to the 'downloads' directory | |
cd ~/downloads | |
# Download sqlcl zip file | |
curl -O https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-21.4.1.17.1458.zip | |
# Unzip the downloaded file | |
unzip sqlcl-21.4.1.17.1458.zip | |
# Navigate back to home directory | |
cd ~ | |
# Download the sqlcl.sh script | |
curl -O https://gist.githubusercontent.com/airstrike/1970aa5a02eac204d01411ff75592f31/raw/107de9eaaf247192345aedf29bec43aa7d94bfdc/sqlcl sqlcl.sh | |
# Make the sqlcl.sh script executable | |
chmod +x ~/sqlcl.sh | |
# Append `sqlcl` alias to .bash_profile | |
echo 'alias sqlcl="$HOME/sqlcl.sh"' >> ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a link to the other gist which contains the sqlcl script I linked directly in the above script (i.e. I'm curl'ing the raw version of that script so you don't have to copy-and-paste it):
https://gist.github.com/airstrike/1970aa5a02eac204d01411ff75592f31