about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/relative2
-rw-r--r--Functions/TCP/tcp_alias2
-rw-r--r--Functions/TCP/tcp_close2
-rw-r--r--Functions/TCP/tcp_read2
-rw-r--r--Functions/Zle/forward-word-match2
-rw-r--r--Functions/Zle/match-words-by-style6
-rw-r--r--Functions/Zle/transpose-words-match2
7 files changed, 9 insertions, 9 deletions
diff --git a/Functions/Misc/relative b/Functions/Misc/relative
index f649e51e7..432f2e2da 100644
--- a/Functions/Misc/relative
+++ b/Functions/Misc/relative
@@ -15,7 +15,7 @@ local -a cur abs
 cur=(${(s:/:)2})	# Split 'current' directory into cur
 abs=(${(s:/:)1} $3)	# Split target directory into abs
 
-# Compute the length of the common prefix, or discover a subdiretory:
+# Compute the length of the common prefix, or discover a subdirectory:
 integer i=1
 while [[ i -le $#abs && $abs[i] == $cur[i] ]]
 do
diff --git a/Functions/TCP/tcp_alias b/Functions/TCP/tcp_alias
index 9d6a28da0..59fe67814 100644
--- a/Functions/TCP/tcp_alias
+++ b/Functions/TCP/tcp_alias
@@ -85,7 +85,7 @@ for arg in $*; do
 	index=${array[(i)$alias]}
 	array=(${array[1,index-1]} ${array[index+1,-1]})
 	if [[ -z "$array" ]]; then
-	  unset "tcp_aliase[$fd]"
+	  unset "tcp_aliases[$fd]"
 	else
 	  tcp_aliases[$fd]="$array"
 	fi
diff --git a/Functions/TCP/tcp_close b/Functions/TCP/tcp_close
index 61508f4c6..9c876786c 100644
--- a/Functions/TCP/tcp_close
+++ b/Functions/TCP/tcp_close
@@ -4,7 +4,7 @@
 # -n means don't close a fake session's fd.
 # -q means quiet.
 #
-# Accepts the -s and -l arguments for consistenty with other functions,
+# Accepts the -s and -l arguments for consistency with other functions,
 # but there is no particular gain in using them
 emulate -L zsh
 setopt extendedglob cbases
diff --git a/Functions/TCP/tcp_read b/Functions/TCP/tcp_read
index 97da8bf21..d9aa47e0e 100644
--- a/Functions/TCP/tcp_read
+++ b/Functions/TCP/tcp_read
@@ -87,7 +87,7 @@ while getopts "abdl:qs:t:T:u:" opt; do
 	done
 	;;
 
-    # Don't print an error mesage if there is no TCP connection,
+    # Don't print an error message if there is no TCP connection,
     # just return 1.
     (q) quiet=1
 	;;
diff --git a/Functions/Zle/forward-word-match b/Functions/Zle/forward-word-match
index 65bed784d..2a4165c0c 100644
--- a/Functions/Zle/forward-word-match
+++ b/Functions/Zle/forward-word-match
@@ -18,7 +18,7 @@ while (( count-- )); do
     match-words-by-style
 
     # For some reason forward-word doesn't work like the other word
-    # word commnds; it skips whitespace only after any matched word
+    # commands; it skips whitespace only after any matched word
     # characters.
 
     if [[ -n $matched_words[4] ]]; then
diff --git a/Functions/Zle/match-words-by-style b/Functions/Zle/match-words-by-style
index 9dcc165a9..0ca51d4fd 100644
--- a/Functions/Zle/match-words-by-style
+++ b/Functions/Zle/match-words-by-style
@@ -10,7 +10,7 @@
 # For example
 #    foo bar  rod stick
 #            ^
-# with the cursor where indicated whill with typical settings produce the
+# with the cursor where indicated will with typical settings produce the
 # elements `foo ', `bar', ` ', ` ', `rod', ` ' and `stick'.
 #
 # The style word-style can be set to indicate what a word is.
@@ -26,7 +26,7 @@
 #		treated as `normal', but this should not be relied upon.)
 #  specified    Similar to normal, except that only the words given
 #               in the string (and not also alphanumeric characters)
-#               are to be considerd parts of words.
+#               are to be considered parts of words.
 #  unspecified  The negation of `specified': the characters given
 #               are those that aren't to be considered parts of a word.
 #               They should probably include white space.
@@ -38,7 +38,7 @@
 #   zstyle ':zle:transpose-words*' word-style normal
 #   zstyle ':zle:transpose-words*' word-chars ''
 # will force bash-style word recognition, i.e only alphanumeric characters
-# are considerd parts of a word.  It is up to the function which calls
+# are considered parts of a word.  It is up to the function which calls
 # match-words-by-style to set the context in the variable curcontext,
 # else a default context will be used (not recommended).
 #
diff --git a/Functions/Zle/transpose-words-match b/Functions/Zle/transpose-words-match
index 6fb60a01d..6e12c4fa1 100644
--- a/Functions/Zle/transpose-words-match
+++ b/Functions/Zle/transpose-words-match
@@ -1,5 +1,5 @@
 # Transpose words, matching the words using match-words-by-style, q.v.
-# The group of word characters preceeding the cursor (not necessarily
+# The group of word characters preceding the cursor (not necessarily
 # immediately) are transposed with the group of word characters following
 # the cursor (again, not necessarily immediately).
 #