Browse Source

Manager: Change local variables to camelCase

master
Riyyi 3 years ago
parent
commit
80cf6138bc
  1. 41
      dotfiles.sh

41
dotfiles.sh

@ -3,7 +3,8 @@
# Manages dotfiles and packages # Manages dotfiles and packages
# Depends: GNU getopt, (pacman, pacman-contrib) / (dpkg, apt) # Depends: GNU getopt, (pacman, pacman-contrib) / (dpkg, apt)
# User-config--------------------------- # User-config
# --------------------------------------
# File which holds all installed packages # File which holds all installed packages
packageFile="packages" packageFile="packages"
@ -26,44 +27,44 @@ fi
help() help()
{ {
B=$(tput bold) b=$(tput bold)
U=$(tput smul) u=$(tput smul)
N=$(tput sgr0) n=$(tput sgr0)
cat << EOF cat << EOF
${B}NAME${N} ${b}NAME${n}
dotfiles - manages dotfiles and packages dotfiles - manages dotfiles and packages
${B}SYNOPSIS${N} ${b}SYNOPSIS${n}
${B}./dotfiles.sh${N} ${U}OPTION${N} [${U}ARG${N}] ${b}./dotfiles.sh${n} ${u}OPTION${n} [${u}ARG${n}]
${B}OPTIONS${N} ${b}OPTIONS${n}
${B}-a${N} ${U}FILE${N}, ${B}--add${N}=${U}FILE${N} ${b}-a${n} ${u}FILE${n}, ${b}--add${n}=${u}FILE${n}
Add file to the dotfiles directory. Add file to the dotfiles directory.
${B}-f, --files${N} ${b}-f, --files${n}
Display all files added to the dotfiles directory. Display all files added to the dotfiles directory.
${B}-h, --help${N} ${b}-h, --help${n}
Display usage message and exit. Display usage message and exit.
${B}-p${N} [${U}FUNCTION${N}], ${B}--packages${N}=[${U}FUNCTION${N}] ${b}-p${n} [${u}FUNCTION${n}], ${b}--packages${n}=[${u}FUNCTION${n}]
Apply ${U}FUNCTION${N} to the package manager packages. Apply ${u}FUNCTION${n} to the package manager packages.
${U}install${N} Install all core packages of the stored list. ${u}install${n} Install all core packages of the stored list.
${U}install-aur${N} Install all AUR packages of the stored list. ${u}install-aur${n} Install all AUR packages of the stored list.
${U}list${N} Display all packages installed on the system. ${u}list${n} Display all packages installed on the system.
${U}store${N} Stores a list of all installed packages on the system. ${u}store${n} Stores a list of all installed packages on the system.
The default value is ${U}list${N}. The default value is ${u}list${n}.
${B}-l, --pull${N} ${b}-l, --pull${n}
Pull each added file from the system to the dotfiles directory. Pull each added file from the system to the dotfiles directory.
${B}-s, --push${N} ${b}-s, --push${n}
Push each added file to its location on the system. Push each added file to its location on the system.
EOF EOF
} }

Loading…
Cancel
Save