I have created an alias and appended to ~/.bashrc:
echo "alias mydir='cd /home/agochar/Desktop/folder'">>~/.bashrc
When I tried to run it like:
mydir it says:
Command 'mydir' not found
But when I just run .bashrc like:
. ~/.bashrc it works fine but not in a normal way.
Saying normal way I mean when we open terminal emulator it prompts: username@hostname$ and we start typing commands. But what the heck is this:
When I type
mydir it works.
The solution I want is I want
mydir working without runing
. ~/.bashrc each time I want it to use. Also to get rid of these escape sequence like character when I execute