Skip to content

On every reboot I have to set up the aliases #18

Answered by jgneff
alculete asked this question in Q&A
Discussion options

You must be logged in to vote

HI, Danilo. Are you talking about the Bash aliases described here? If so, yes, those will be active only during your current Bash session. To make them permanent, put them into the file .bash_aliases in your home directory. First run the following command:

$ cat $(openjdk)
# Source this file for OpenJDK environment variables and aliases
export JAVA_HOME=/snap/openjdk/1954/jdk
export MANPATH=/snap/openjdk/1954/jdk/man:
alias java='openjdk.java'
alias javac='openjdk.javac'
alias javadoc='openjdk.javadoc'
alias jar='openjdk.jar'
alias jarsigner='openjdk.jarsigner'
alias jlink='openjdk.jlink'
alias jpackage='openjdk.jpackage'
alias jwebserver='openjdk.jwebserver'

Then copy and paste the lines…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alculete
Comment options

Answer selected by alculete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants