skylerwebdev / .bash_scripts

Bash Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helpful Bash Scripts

Tested on Linux Debian 10 and Ubuntu 18

Should work on Mac and Windows(Provided you are using GitBash)

Instructions for Shell Scripts

  1. To use the scripts put clone this repo into your home folder
  2. Make them executeable (linux) chmod +x ~/.bash_scripts/* -R
  3. Run the script you want to run eg.. bash ~/.bash_scripts/setup-react.sh or Double Click it.
  4. You can create aliases for them as well

Instructions for Aliases

  1. Make a symbolic link for aliases (linux) ln -sv ./.bash_scripts/bash_aliases ~/.bash_aliases

Make sudo run with no password

  1. Edit /etc/sudoers
  2. Add YourUsernameHere ALL=(ALL) NOPASSWD: ALL
  3. source /etc/sudoers/ or open a new terminal.

Scripts

  1. Setup React App With Working Navigation
  • Asks for App Name
  • Installs React Router
  • Creates Files (With Content)
    • AppRouter
    • Private Route
    • NavBar
    • Header
    • Footer
    • Home
    • About
    • Contact
  • Rewrites app and index.js
  1. Git Create Branch
  • Asks for branch name
  • Creates a new branch
  • Sets the upstream for the branch
  1. Git Deploy
  • Asks for a Commit message
  • Adds files
  • Commits files with commit message
  • Pushes files to current branch as long as the upstream is set
  1. Clean Node Modules
  • Digs down deep to remove node modules folders
  1. Install_googlefonts.sh
  • Installs all google fonts
  • SHOUTOUT TO @keeferrourke FOR THE SCRIPT

About

Bash Scripts


Languages

Language:Shell 100.0%