Custom Terminal Commands
Create an alias and save it permanently to $ZSH/custom/aliases.zsh
Note: The underscore is because this file is prefereably referenced by an alias: newalias="source _newalias".
Reason: To run source ~/.zshrc automatically everytime something changes.
Create & Update a backup of my pendrives everyday using rsync
Note: My paths are hardcoded (specially of my pendrive). I'll add configs to change it later. (Open an issue about it).
alias cs="cd_ls"
This command would execute cd and ls to list the files.
Simply adds the -lcs50 flag to gcc when compiling .c files.
Note: That flag is for using the CS50 beginner library for C.
Edit your /home/bin scripts from anywhere.
Usage: edit [filename]
Attempt to normalize help texts for my commands. I realized it was not needed.
Uses bat for pretty printing
Changes the (laptop) screen brightness.
Navigates to /sys/class/backlight/$backlight_folder/ and edits the brightness value according to your input.
Note: Requires root account to edit that file.
(My first shellscript :D)
Keep track of everything you install.
Appends your input into new-installed-apps.txt under /home/Downloads.
Reason: On a near-future, you may want to free up some storage. Just look for this list for software you don't need anymore.
Usage: newapp [app-info]
Note: It's arbitrary, but I recommend the app-info format to be: Name - Reason to install/utility - Size.
Warp your terminal into your chosen programming folder under home/Documents/Programacao.
Usage: programar [folder]
Minimal utility to configure another mouse & keyboard into your computer, making it multi-headed (multi user). Uses XInput.
Note: I used to play minecraft with my brother. On the same laptop by using two sets of screen, keyboard, mouse. This is why some devices names are hardcoded.
Toggles the php, mariadb and apache stack, a.k.a. LAMP. Gathers info to see if these services are active. Uses systemd.
Usage: togglephp [0 | 1]