Why is my alias now not working?
So before I reformatted (to get rid of Windows), I simply used this command to open documents by putting it at the end of the ~/.bashrc
file:
alias commandless= 'gnome-open ./Documents/the-linux-command-line.pdf; gnome-open ./Documents/linux.odt'
But now everytime I start the terminal, it says:
bash: alias: gnome-open ./Documents/the-linux-command-line.pdf; gnome-open ./Documents/linux.odt: not found
before even typing anything in, and when I run the command nothing happens, not even error messages.
Solution 1:
You have a space between the =
and the opening '
. Remove it.
$ alias foo= 'bar baz'
bash: alias: bar baz: not found