mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 21:53:47 -05:00
Added correct script description
This commit is contained in:
@@ -8,8 +8,9 @@ version="1.0.0" # Sets version variable for this script
|
|||||||
scriptTemplateVersion="1.0.1" # Version of scriptTemplate.sh
|
scriptTemplateVersion="1.0.1" # Version of scriptTemplate.sh
|
||||||
# that this script is based on
|
# that this script is based on
|
||||||
#
|
#
|
||||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
# This script installs Homebrew Casks - allowing for command line
|
||||||
# file creation, CL option passing, and more.
|
# installation of native Mac Applications. Once Homebrew Casks is installed,
|
||||||
|
# this script then installs a number of applications.
|
||||||
#
|
#
|
||||||
# For logging levels use the following functions:
|
# For logging levels use the following functions:
|
||||||
# - header: Prints a script header
|
# - header: Prints a script header
|
||||||
@@ -181,11 +182,11 @@ header "Completed ${scriptName}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
This script installs Homebrew Casks - allowing for command line
|
||||||
|
installation of native Mac Applications. Once Homebrew Casks is installed,
|
||||||
|
this script then installs a number of applications.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
|
|||||||
@@ -138,11 +138,10 @@ header "Completed ${scriptBasename}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
A Script to test if certain files from Dropbox are synced to the local hard drive.
|
||||||
|
This script relies on a text file containing paths to documents.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ version="1.0.0" # Sets version variable for this script
|
|||||||
scriptTemplateVersion="1.0.1" # Version of scriptTemplate.sh
|
scriptTemplateVersion="1.0.1" # Version of scriptTemplate.sh
|
||||||
# that this script is based on
|
# that this script is based on
|
||||||
#
|
#
|
||||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
# Installs Homebrew and all its prerequisites, then installs a number of packages.
|
||||||
# file creation, CL option passing, and more.
|
|
||||||
#
|
#
|
||||||
# For logging levels use the following functions:
|
# For logging levels use the following functions:
|
||||||
# - header: Prints a script header
|
# - header: Prints a script header
|
||||||
@@ -184,11 +183,9 @@ header "Ending ${scriptName}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
Installs Homebrew and all its prerequisites, then installs a number of packages.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ version="1.0.0" # Sets version variable for this script
|
|||||||
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh
|
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh
|
||||||
# that this script is based on
|
# that this script is based on
|
||||||
#
|
#
|
||||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
# This script installs Mackup, symlinks configuration files with Dropbox,
|
||||||
# file creation, CL option passing, and more.
|
# and then runs Mackup Restore to use a shared configuration on a new computer.
|
||||||
#
|
#
|
||||||
# For logging levels use the following functions:
|
# For logging levels use the following functions:
|
||||||
# - header: Prints a script header
|
# - header: Prints a script header
|
||||||
@@ -184,11 +184,10 @@ header "Completed ${scriptName}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
This script installs Mackup, symlinks configuration files with Dropbox,
|
||||||
|
and then runs Mackup Restore to use a shared configuration on a new computer.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ version="1.0.0" # Sets version variable for this script
|
|||||||
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh that this script is based on
|
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh that this script is based on
|
||||||
# v.1.1.0 - Added 'debug' option
|
# v.1.1.0 - Added 'debug' option
|
||||||
#
|
#
|
||||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
# This script configures a MacOS environment.
|
||||||
# file creation, CL option passing, and more.
|
|
||||||
#
|
#
|
||||||
# For logging levels use the following functions:
|
# For logging levels use the following functions:
|
||||||
# - header: Prints a script header
|
# - header: Prints a script header
|
||||||
@@ -174,7 +173,7 @@ if is_confirmed; then
|
|||||||
success "Automatically quit printer app once the print jobs complete"
|
success "Automatically quit printer app once the print jobs complete"
|
||||||
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
||||||
|
|
||||||
success "Disable the Are you sure you want to open this application? dialog"
|
success "Disable the 'Are you sure you want to open this application?' dialog"
|
||||||
defaults write com.apple.LaunchServices LSQuarantine -bool false
|
defaults write com.apple.LaunchServices LSQuarantine -bool false
|
||||||
|
|
||||||
success "General:Display ASCII control characters using caret notation in standard text views"
|
success "General:Display ASCII control characters using caret notation in standard text views"
|
||||||
@@ -212,7 +211,7 @@ if is_confirmed; then
|
|||||||
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
|
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
|
||||||
|
|
||||||
success "Removing duplicates in the 'Open With' menu"
|
success "Removing duplicates in the 'Open With' menu"
|
||||||
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
|
#/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
|
||||||
|
|
||||||
#success "Disable hibernation? (speeds up entering sleep mode)"
|
#success "Disable hibernation? (speeds up entering sleep mode)"
|
||||||
#sudo pmset -a hibernatemode 0
|
#sudo pmset -a hibernatemode 0
|
||||||
@@ -823,12 +822,10 @@ header "Completed ${scriptBasename}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
This script configures a macOSX environment.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions.
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
-s, --strict Exit script with null variables. i.e 'set -o nounset'
|
-s, --strict Exit script with null variables. i.e 'set -o nounset'
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ version="1.0.0" # Sets version variable for this script
|
|||||||
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh that this script is based on
|
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh that this script is based on
|
||||||
# v.1.1.0 - Added 'debug' option
|
# v.1.1.0 - Added 'debug' option
|
||||||
#
|
#
|
||||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
# This script will install Ruby and RVM via Homebrew
|
||||||
# file creation, CL option passing, and more.
|
|
||||||
#
|
#
|
||||||
# For logging levels use the following functions:
|
# For logging levels use the following functions:
|
||||||
# - header: Prints a script header
|
# - header: Prints a script header
|
||||||
@@ -171,11 +170,9 @@ header "Ending ${scriptBasename}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
This script installs Ruby and RVM via Homebrew as well as a number of Gems.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ version="1.0.0" # Sets version variable for this script
|
|||||||
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh that this script is based on
|
scriptTemplateVersion="1.1.0" # Version of scriptTemplate.sh that this script is based on
|
||||||
# v.1.1.0 - Added 'debug' option
|
# v.1.1.0 - Added 'debug' option
|
||||||
#
|
#
|
||||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
# This script creates an SSH key on a mac and then sends it to GitHub.
|
||||||
# file creation, CL option passing, and more.
|
|
||||||
#
|
#
|
||||||
# For logging levels use the following functions:
|
# For logging levels use the following functions:
|
||||||
# - header: Prints a script header
|
# - header: Prints a script header
|
||||||
@@ -138,11 +137,9 @@ header "Completed ${scriptBasename}"
|
|||||||
usage() {
|
usage() {
|
||||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||||
|
|
||||||
This is my script template.
|
This script creates an SSH key on a mac and then sends it to GitHub.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-u, --username Username for script
|
|
||||||
-p, --password User password
|
|
||||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||||
-q, --quiet Quiet (no output)
|
-q, --quiet Quiet (no output)
|
||||||
-l, --log Print log to file
|
-l, --log Print log to file
|
||||||
|
|||||||
Reference in New Issue
Block a user