Quote:
Originally Posted by Janus84
So I tried to create an alias in my bashrc file:
|
That's not sufficient. You have to execute your bashrc file, either by logging on or this way:
Code:
source $HOME/.bashrc
However, the winbox alias will try to run ./winbox.sh. This only works if the current directory contains winbox.sh.
Rather than juggling with aliases, copy winbox.sh into a directory that is in your path. For example, in .bashrc or .bash_profile, ensure that PATH contains $HOME/bin. For example:
Code:
PATH=$PATH:$HOME/bin
Then make winbox.sh executable and move it to $HOME/bin:
Code:
chmod +x winbox.sh
mv winbox.sh $HOME/bin/winbox
Once you have activated your PATH by logging on again, you should be able to run winbox no matter what is your current directory.
EDIT: pan64's suggestion works as well.