The alias's objective is to launch a pdf in my chrome browser. The pdf is entitled "Intro to Java.pdf"; the browser is "Google Chrome"
alias x='open -a "Google Chrome" /Users/ahanagrawal/Documents/"Intro to Java.pdf"'
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityAre you sourcing the file in which the alias is defined?
source ~/.bash_profile
If your alias was defined in .bash_profile in your home directory.
To list the defined aliases, simply type 'alias' in the shell. Type 'alias youraliasname' to see whether the alias 'youraliasname' is defined, and if so, its definition.
Intro to Java.pdf
toIntro\ to\ Java.pdf