Skip to content

bash_utils is a set of useful bash scripts (made for 42 computers, some features will therefore not be useful / usable elsewhere)

Notifications You must be signed in to change notification settings

0xKunah/bash_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash_utils

✅ This is not a 42 project, you can take it, even if you're a 42 student

bash_utils is a set of useful bash scripts (made for 42 computers, some features will therefore not be useful / usable elsewhere)

Table of content:

Installation

git clone https://github.com/dbiguene/bash_utils.git
bash ./bash_utils/installer.sh

Features

  • Runs norminette with a prettier output

    Example: ./better_norminette.sh -s *.c

    Idea is from gd-harco, code is from me
  • Easier way to manage your repo, add files, commit...

    Flags:

    Notice that all the following flags arent mandatory, using them will just prevent the script to ask you for branc name, repo url, remote name,...

    • -s | --silent: Hide all git console messages
    • -af="files" | --addfiles="files": Files to add on the repo
    • -c="message" | --commit="message": Commit message
    • -r="remote_name" | --remote="remote_name": Set the remote name
    • -url="repo_url" | --repo_url="repo_url": Set the repo url
    • -b="branch_name" | --branch="branch_name": Set the branch name

    Example: ./easy_git.sh -s -af="." -c="Commit message" -url="https://github.com/dbiguene/bash_utils.git" -r="origin" -b="main" Will init a repo, checkout to branch "main", add "origin" remote on "https://github.com/dbiguene/bash_utils", add all files, and commit "Commit message"

  • Easier way to load your dependencies on your makefile

    Flags:

    Notice that all the following flags arent mandatory, using them will just prevent the script to ask you for branc name, repo url, remote name,...

    • -srcs="src_dir" | --sources="src_dir": Set srcs dir
    • -h="headers_dir" | --headers="headers_dir": Set headers dir

    Example: ./make_autoload -srcs="src/" -h="include/" Will list and format all .c files into src/ dir, and all .h files into include/ dir

  • Easier way to start your projects, with a prebuilt makefile and a clean structure, can handle libs too

    Flags:

    Notice that all the following flags arent mandatory, using them will just prevent the script to ask you for branc name, repo url, remote name,...

    • -l="libft_url" | --libft="libft_url": Creates a project using your libft
    • -mlx | --minilibx: Creates a project using mlx
    • -p="project_path" | --path="project_path": Creates the project to the given path
    • -n="project_name" | --name="project_name": Set the project name

    Example: ./templater -n="so_long" -p="." -mlx Will create a project named "so_long" to "./" using mlx

Issues

If you find a bug or encounter an issue using this funciton, feel free to open a issue, or a pull request if you know how to fix it

About

bash_utils is a set of useful bash scripts (made for 42 computers, some features will therefore not be useful / usable elsewhere)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages