Skip to content

Extremely useful bash scripts that automate easy tasks

Notifications You must be signed in to change notification settings

asboyer/bash-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 

Repository files navigation

Useful bash scripts

by Andrew Boyer

Scripts:

  • commit: will execute git add . git commit -m "message" and git push origin master all at once (useful for quickly updating a repository)

    • arg1 = commit message
    • arg2 = files to add
    • arg3 = branch name
    • arg4 = remote name all arguments are optional

    Examples:

    Example #1:

    commit

    executes these commands:

    git add .
    git commit -m "automated commit
    git push origin master

    Example #2:

    commit "edited README" README.md
    

    executes these commands:

    git add README.md
    git commit -m "edited README"
    git push origin master

    Example #3:

    commit "edited main" main.py boyer-dev upstream

    executes these commands:

    git add main.py
    git commit -m "edited main"
    git push upstream boyer-dev
  • libclean: will delete the dist build and egg-info directories made when creating a python package (useful for quickly cleaning up enviroment after creating a python package)

  • update: will execute sudo apt update && sudo apt upgrade (useful for quickly updating and upgrading computer in one command)

Note that chrome, update, and web only run in linux

Using these scripts:

  • git clone https://github.com/asboyer2/bash-scripts.git
  • add /path/to/bash-scripts/bin to your $PATH variable in your `.bashrc
    • ex: export PATH=/usr/root/bash-scripts/bin:$PATH
  • Source your .bashrc using the command . .bashrc

About

Extremely useful bash scripts that automate easy tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages