Browse Source

Update dotfiles.sh help function to reflect the new options

master
Riyyi 6 years ago
parent
commit
cef7b7133c
  1. 39
      dotfiles.sh

39
dotfiles.sh

@ -17,6 +17,7 @@ FILES="$(find . -type f \
help() {
B=$(tput bold)
U=$(tput smul)
N=$(tput sgr0)
cat << EOF
@ -24,31 +25,33 @@ ${B}NAME${N}
dotfiles - file copy script for the dotfiles repository
${B}SYNOPSIS${N}
./dotfiles.sh <command> [<args>]
./dotfiles.sh <OPTIONS> [<ARG>]
${B}COMMANDS${N}
${B}list${N}
Print all files added to the dotfiles directory.
${B}get <filepath>${N}
${B}OPTIONS${N}
${B}-a${N} ${U}FILE${N}, ${B}--add${N} ${U}FILE${N}
Add file to the dotfiles directory.
${B}pull${N}
For each file in the dotfiles directory, copy that file on the system to
the dotfiles directory.
${B}-f, --files${N}
Display all files added to the dotfiles directory.
${B}-h, --help${N}
Display usage message and exit.
${B}-p${N} [${U}ARG${N}], ${B}--packages${N} [${U}ARG${N}]
${B}install${N}
Install all core packages of the stored list.
${B}push${N}
For each file in the dotfiles directory, copy that file to its location
on the system.
${B}list${N} (default)
Display all packages installed on the system.
${B}packages [list]${N}
List all the packages installed on the system.
${B}store${N}
Stores a list of all installed packages on the system.
${B}packages store${N}
Store the list of all the installed packages on the system.
${B}-l, --pull${N}
Pull each added file from the system to the dotfiles directory.
${B}packages install${N}
Install all the core packages of the stored list.
${B}-s, --push${N}
Push each added file to its location on the system.
EOF
}

Loading…
Cancel
Save