From e0d154331f36515e9daf70ac6aca68bf7760eb5f Mon Sep 17 00:00:00 2001 From: Kevin Zhuang Date: Tue, 25 Aug 2020 08:54:32 +1000 Subject: [PATCH] fix: typos of help manual and comments --- helper/git_query.sh | 4 ++-- helper/search_file.sh | 2 +- helper/set_variable.sh | 2 +- scripts/fbackup | 4 ++-- scripts/funtrack | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helper/git_query.sh b/helper/git_query.sh index 92520ae..6545743 100644 --- a/helper/git_query.sh +++ b/helper/git_query.sh @@ -165,7 +165,7 @@ function get_modified_file() { ####################################### # let user select a stash interactively # 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 # Outputs: # the selected stash identifier @@ -198,7 +198,7 @@ function get_stash() { # $2: the fzf delimiter to start searching, default is 3 # $3: if exists, don't do multi select, only allow single selection # 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 ####################################### function grep_words() { diff --git a/helper/search_file.sh b/helper/search_file.sh index cff39a1..d4a6f1c 100644 --- a/helper/search_file.sh +++ b/helper/search_file.sh @@ -5,7 +5,7 @@ ####################################### # search local file # Arguments: -# $1: stirng, f or d, search file or directory +# $1: string, f or d, search file or directory # Outputs: # A user selected file path ####################################### diff --git a/helper/set_variable.sh b/helper/set_variable.sh index 18491f2..7bbfeb1 100644 --- a/helper/set_variable.sh +++ b/helper/set_variable.sh @@ -7,7 +7,7 @@ # ${DOTBARE_DIR}: location of the bare repo # ${DOTBARE_TREE}: which folder is the bare repo tracking # ${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 # ${DOTBARE_FZF_DEFAULT_OPTS}: user custom setting for dotbare # ${EDITOR}: default editor to use diff --git a/scripts/fbackup b/scripts/fbackup index 4743342..eb3c825 100755 --- a/scripts/fbackup +++ b/scripts/fbackup @@ -32,14 +32,14 @@ Default: backup all tracked files using cp command to ${DOTBARE_BACKUP} director optional arguments: -h, --help\t\tshow this help message and exit. -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." } ####################################### # backup passed in files while preserving directory info # Arguments: -# $1: files to backup, seperate by \n +# $1: files to backup, separate by \n # $2: action command (cp|mv) ####################################### function dotbare_backup() { diff --git a/scripts/funtrack b/scripts/funtrack index c54da78..4e448d7 100755 --- a/scripts/funtrack +++ b/scripts/funtrack @@ -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 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: -h, --help\t\tshow this help message and exit.