Skip to content

LucasGourmelon/Auto-Compil-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AutoCompil

Auto compil is a bash script witch permite to compile and execute a C program when you save the .c file your put in parameter. It permite to save time during your C development.

Before use

Install inotify-tools

sudo apt-get install inotify-tools

Use

Download the script and do this:

chmod +x /path_to/the_script/autoCompilC.sh
sudo mv /path_to/the_script/autoCompilC.sh /usr/local/bin/

After that you can execute the script from everywhere like this :

autoCompilC.sh yourProgram.c 

You can also create an alias on the bashrc :

nano ~/.bashrc 

And add this line by replacing the 'ec' by what you want :

alias ec='autoCompilC.sh'

Apply changes :

source ~/.bashrc 

Now you can executhe the script like this :

em yourProgram.c 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages