Create an ALIAS for the ./configure File?

2

I've cloned the Github repository, and to execute the precise command always type, ./name-directory/vv

I imagine this "file" is a Linux CONFIGURE type, correct?

I would like to know how I create an ALIAS in Ubuntu so that when I type only "vv" it runs this command globally from anywhere on my machine ...

And if possible could you add the same process to OSX (Mac)?

    
asked by anonymous 02.04.2015 / 18:36

1 answer

1

Usually alias is placed in the ~/.bashrc file, assuming you use Bash . To edit the file, type in the terminal:

gedit ~/.bashrc

And add alias to the end:

alias cmd='comando'

It is also possible to create a separate aliases file, so you will not have to put them in .bashrc , but in a file of your choice. First, edit the file ~/.bashrc and uncomment the following lines:

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

Save and close the file. After that, all you have to do is create the file ~/.bash_aliases and add your aliases there.

    
02.04.2015 / 20:08