mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 13:43:46 -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
|
||||
# that this script is based on
|
||||
#
|
||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
||||
# file creation, CL option passing, and more.
|
||||
# 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.
|
||||
#
|
||||
# For logging levels use the following functions:
|
||||
# - header: Prints a script header
|
||||
@@ -181,11 +182,11 @@ header "Completed ${scriptName}"
|
||||
usage() {
|
||||
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:
|
||||
-u, --username Username for script
|
||||
-p, --password User password
|
||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||
-q, --quiet Quiet (no output)
|
||||
-l, --log Print log to file
|
||||
|
||||
@@ -138,11 +138,10 @@ header "Completed ${scriptBasename}"
|
||||
usage() {
|
||||
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:
|
||||
-u, --username Username for script
|
||||
-p, --password User password
|
||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||
-q, --quiet Quiet (no output)
|
||||
-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
|
||||
# that this script is based on
|
||||
#
|
||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
||||
# file creation, CL option passing, and more.
|
||||
# Installs Homebrew and all its prerequisites, then installs a number of packages.
|
||||
#
|
||||
# For logging levels use the following functions:
|
||||
# - header: Prints a script header
|
||||
@@ -184,11 +183,9 @@ header "Ending ${scriptName}"
|
||||
usage() {
|
||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||
|
||||
This is my script template.
|
||||
Installs Homebrew and all its prerequisites, then installs a number of packages.
|
||||
|
||||
Options:
|
||||
-u, --username Username for script
|
||||
-p, --password User password
|
||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||
-q, --quiet Quiet (no output)
|
||||
-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
|
||||
# that this script is based on
|
||||
#
|
||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
||||
# file creation, CL option passing, and more.
|
||||
# This script installs Mackup, symlinks configuration files with Dropbox,
|
||||
# and then runs Mackup Restore to use a shared configuration on a new computer.
|
||||
#
|
||||
# For logging levels use the following functions:
|
||||
# - header: Prints a script header
|
||||
@@ -184,11 +184,10 @@ header "Completed ${scriptName}"
|
||||
usage() {
|
||||
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:
|
||||
-u, --username Username for script
|
||||
-p, --password User password
|
||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||
-q, --quiet Quiet (no output)
|
||||
-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
|
||||
# v.1.1.0 - Added 'debug' option
|
||||
#
|
||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
||||
# file creation, CL option passing, and more.
|
||||
# This script configures a MacOS environment.
|
||||
#
|
||||
# For logging levels use the following functions:
|
||||
# - header: Prints a script header
|
||||
@@ -174,7 +173,7 @@ if is_confirmed; then
|
||||
success "Automatically quit printer app once the print jobs complete"
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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)"
|
||||
#sudo pmset -a hibernatemode 0
|
||||
@@ -823,12 +822,10 @@ header "Completed ${scriptBasename}"
|
||||
usage() {
|
||||
echo -n "${scriptName} [OPTION]... [FILE]...
|
||||
|
||||
This is my script template.
|
||||
This script configures a macOSX environment.
|
||||
|
||||
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)
|
||||
-l, --log Print log to file
|
||||
-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
|
||||
# v.1.1.0 - Added 'debug' option
|
||||
#
|
||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
||||
# file creation, CL option passing, and more.
|
||||
# This script will install Ruby and RVM via Homebrew
|
||||
#
|
||||
# For logging levels use the following functions:
|
||||
# - header: Prints a script header
|
||||
@@ -171,11 +170,9 @@ header "Ending ${scriptBasename}"
|
||||
usage() {
|
||||
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:
|
||||
-u, --username Username for script
|
||||
-p, --password User password
|
||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||
-q, --quiet Quiet (no output)
|
||||
-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
|
||||
# v.1.1.0 - Added 'debug' option
|
||||
#
|
||||
# A Bash script boilerplate. Allows for common functions, logging, tmp
|
||||
# file creation, CL option passing, and more.
|
||||
# This script creates an SSH key on a mac and then sends it to GitHub.
|
||||
#
|
||||
# For logging levels use the following functions:
|
||||
# - header: Prints a script header
|
||||
@@ -138,11 +137,9 @@ header "Completed ${scriptBasename}"
|
||||
usage() {
|
||||
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:
|
||||
-u, --username Username for script
|
||||
-p, --password User password
|
||||
-f, --force Skip all user interaction. Implied 'Yes' to all actions
|
||||
-q, --quiet Quiet (no output)
|
||||
-l, --log Print log to file
|
||||
|
||||
Reference in New Issue
Block a user