Simple tools to help your daily coding routine!
git clone https://github.com/mathix420/42-utilities.git ~/42-utilities && sh ~/42-utilities/install.sh
Generates Makefiles for you.
An alias is added to your shell rc
to use mf-gen anywhere:
alias mf-gen="python3 ~/42-utilities/mf-gen.py"
Run mf-gen
in your project folder.
Or if you prefer the arguments version:
mf-gen <executable_and_header_name> <sources_folder> <header_folder>
Copies all function prototypes (with how many tabs you want) to your clipboard, so you can easily add them to your header file.
An alias is added to your shell rc
to use proto-list anywhere:
alias proto-list="sh ~/42-utilities/proto-list.sh"
Use the display
option to show the prototypes copied to your clipboard.
proto-list <sources_folder> <number_of_tabs> [display]
Updates 42-utilities when necessary. Checks for updates only once a day. Takes about one second to do so.
This command is prepended to all aliases:
/bin/sh ~/42-utilities/update.sh
- Checks if the date stored in
/tmp/.42_utilities_date
is different from the current date. - If so, checks if
https://raw.githubusercontent.com/mathix420/42-utilities/master/sum
is different from~/42-utilities/sum
. - Again, if so, performs a
git pull
in the 42-utilities directory.