fix: typos of help manual and comments

pull/25/head
Kevin Zhuang 4 years ago
parent aa7ab490d8
commit e0d154331f

@ -165,7 +165,7 @@ function get_modified_file() {
####################################### #######################################
# let user select a stash interactively # let user select a stash interactively
# Arguments: # Arguments:
# $1: the helpe message to display in header # $1: the help message to display in header
# $2: if exists, don't do multi select, only allow single selection # $2: if exists, don't do multi select, only allow single selection
# Outputs: # Outputs:
# the selected stash identifier # the selected stash identifier
@ -198,7 +198,7 @@ function get_stash() {
# $2: the fzf delimiter to start searching, default is 3 # $2: the fzf delimiter to start searching, default is 3
# $3: if exists, don't do multi select, only allow single selection # $3: if exists, don't do multi select, only allow single selection
# Outputs: # Outputs:
# the selected file name with it's line number and line, seperated by ":" # the selected file name with it's line number and line, separated by ":"
# e.g. .bash_profile:1:echo hello # e.g. .bash_profile:1:echo hello
####################################### #######################################
function grep_words() { function grep_words() {

@ -5,7 +5,7 @@
####################################### #######################################
# search local file # search local file
# Arguments: # Arguments:
# $1: stirng, f or d, search file or directory # $1: string, f or d, search file or directory
# Outputs: # Outputs:
# A user selected file path # A user selected file path
####################################### #######################################

@ -7,7 +7,7 @@
# ${DOTBARE_DIR}: location of the bare repo # ${DOTBARE_DIR}: location of the bare repo
# ${DOTBARE_TREE}: which folder is the bare repo tracking # ${DOTBARE_TREE}: which folder is the bare repo tracking
# ${DOTBARE_BACKUP}: backup directory for all tracked files # ${DOTBARE_BACKUP}: backup directory for all tracked files
# ${DOTBARE_KEY}: defualt key bindings # ${DOTBARE_KEY}: default key bindings
# ${FZF_DEFAULT_OPTS}: update FZF_DEFAULT_OPTS to reflect dotbare changes # ${FZF_DEFAULT_OPTS}: update FZF_DEFAULT_OPTS to reflect dotbare changes
# ${DOTBARE_FZF_DEFAULT_OPTS}: user custom setting for dotbare # ${DOTBARE_FZF_DEFAULT_OPTS}: user custom setting for dotbare
# ${EDITOR}: default editor to use # ${EDITOR}: default editor to use

@ -32,14 +32,14 @@ Default: backup all tracked files using cp command to ${DOTBARE_BACKUP} director
optional arguments: optional arguments:
-h, --help\t\tshow this help message and exit. -h, --help\t\tshow this help message and exit.
-s, --select\t\tlist all tracked files and only backup the selected files. -s, --select\t\tlist all tracked files and only backup the selected files.
-p PATH, --path PATH\tsepcify path of files to backup. -p PATH, --path PATH\tspecify path of files to backup.
-m, --move\t\tuse 'mv' instead of the default 'cp' command to backup." -m, --move\t\tuse 'mv' instead of the default 'cp' command to backup."
} }
####################################### #######################################
# backup passed in files while preserving directory info # backup passed in files while preserving directory info
# Arguments: # Arguments:
# $1: files to backup, seperate by \n # $1: files to backup, separate by \n
# $2: action command (cp|mv) # $2: action command (cp|mv)
####################################### #######################################
function dotbare_backup() { function dotbare_backup() {

@ -35,7 +35,7 @@ Make sure to run dotbare fbackup before pulling down the changes.
Alternatively use the -t flag (using git update-index --assume-unchanged [path]) to temporarily Alternatively use the -t flag (using git update-index --assume-unchanged [path]) to temporarily
untrack a file but keeping the files when other computers pull down the changes. untrack a file but keeping the files when other computers pull down the changes.
More information please refere to dotbare's github. More information please refer to dotbare's github.
Optional arguments: Optional arguments:
-h, --help\t\tshow this help message and exit. -h, --help\t\tshow this help message and exit.

Loading…
Cancel
Save