How can I achieve the following:
type vdm in the terminal
and that will be replaced by wine Program Files/The VDM++ Toolbox Lite v8.3.1/bin
I also wanted vdm to work in any folder I am whatsoever.
|
How can I achieve the following: type I also wanted |
||||
|
|
|
Create a text file
and put
in it. You'll need to restart your shell for it to take effect. The See also this question. |
|||
|
|
|
The quickest way is via an alias. They look as simple as this:
After you plumb that in, you can run For that to persist, you'll need to save it to one of your bash configurqation files. My original post suggested just adding that line to After you make changes to either of those files, you need to run Alternatively you can create a bash function, again in
Again, after putting this in, you'll want to run And finally, if you need something more meaty (you don't for this simple command) you can write a full script and stick it in
And copy in something like this:
The advantage of bin scripts over anything else is they're slightly more portable. You don't have to hack apart or replace your |
||||
|
|
|
In your terminal type If you reboot, though, it will most likely be unset, so you will have to put the line inside the so |
||||
|
|