s/Directoy/Directory/
s/Dont/Don't/
s/accross/across/
s/an other/another/
s/completition/completion/
s/directoy/directory/
s/dont/don't/
s/occurence/occurrence/
s/overwriten/overwritten/
s/prefered/preferred/
s/prevously/previously/
s/reenabled/re-enabled/
s/to to/to/
s/whith/with/
directory does not exist yet -> press **CTRL-xM** and problem solved.
: **CTRL-x-p**
directory does not exist yet -> press **CTRL-xM** and problem solved.
: **CTRL-x-p**
-Searches the last occurence of string before the cursor in the command history.
+Searches the last occurrence of string before the cursor in the command history.
: **CTRL-x-z**
Display help on keybindings and zsh line editor. Press consecutively to page through content.
: **CTRL-x-z**
Display help on keybindings and zsh line editor. Press consecutively to page through content.
=== Customisation ===
To customise keybindings, you can just use zsh's bindkey utility. However, if
=== Customisation ===
To customise keybindings, you can just use zsh's bindkey utility. However, if
-you plan to to use the `//zle-line-init//' or `//zle-line-finish//' hooks
+you plan to use the `//zle-line-init//' or `//zle-line-finish//' hooks
yourself, make sure you call the following functions in the respective hook:
- **zle-line-init**: //zle-smkx//
yourself, make sure you call the following functions in the respective hook:
- **zle-line-init**: //zle-smkx//
ZSH_PROFILE_RC above).
: **salias()**
ZSH_PROFILE_RC above).
: **salias()**
-Creates an alias whith sudo prepended, if $EUID is not zero. Run "salias -h"
+Creates an alias with sudo prepended, if $EUID is not zero. Run "salias -h"
for details. See also xunfunction() below.
: **simple-extract()**
for details. See also xunfunction() below.
: **simple-extract()**
# initialisation {{{
# internal variables
# initialisation {{{
# internal variables
-# Dont output to stdout?
+# Don't output to stdout?
RC_QUIET_STDOUT="no"
# Default values for e-message indentation and dots
RC_QUIET_STDOUT="no"
# Default values for e-message indentation and dots
RC_DEFAULT_INDENT=2
#RC_DOT_PATTERN=' .'
RC_DOT_PATTERN=''
RC_DEFAULT_INDENT=2
#RC_DOT_PATTERN=' .'
RC_DOT_PATTERN=''
-# dont output to stdout?
+# don't output to stdout?
rc_quiet_stdout="no"
# default values for e-message indentation and dots
rc_quiet_stdout="no"
# default values for e-message indentation and dots
" highlight SpellRare term=reverse ctermbg=13 gui=undercurl guisp=Magenta " rare word
" highlight SpellLocale term=underline ctermbg=11 gui=undercurl guisp=DarkCyan " word only exists in other region
" highlight SpellRare term=reverse ctermbg=13 gui=undercurl guisp=Magenta " rare word
" highlight SpellLocale term=underline ctermbg=11 gui=undercurl guisp=DarkCyan " word only exists in other region
- " set maximum number of suggestions listed to top 10 items:
+ " set maximum number of suggestions listed top 10 items:
set sps=best,10
" highlight matching parens:
set sps=best,10
" highlight matching parens:
-# now bind it to keys and enable completition
+# now bind it to keys and enable completion
zle -C insert-kept-result complete-word _generic
zle -C expand-kept-result complete-word _generic
zstyle ':completion:*-kept-result:*' completer _insert_kept
zle -C insert-kept-result complete-word _generic
zle -C expand-kept-result complete-word _generic
zstyle ':completion:*-kept-result:*' completer _insert_kept
[[ $load_cache -eq 0 ]] && . $HELP_ZLE_CACHE_FILE && return
fi
[[ $load_cache -eq 0 ]] && . $HELP_ZLE_CACHE_FILE && return
fi
- #fill with default keybindings, possibly to be overwriten in a file later
+ #fill with default keybindings, possibly to be overwritten in a file later
#Note that due to zsh inconsistency on escaping assoc array keys, we encase the key in '' which we will remove later
local -A help_zle_keybindings
help_zle_keybindings['<Ctrl>@']="set MARK"
#Note that due to zsh inconsistency on escaping assoc array keys, we encase the key in '' which we will remove later
local -A help_zle_keybindings
help_zle_keybindings['<Ctrl>@']="set MARK"
# ignores lines that are commentend out
# grabs first in '' or "" enclosed string with length between 1 and 6 characters
elif [[ "$cline" == [^#]#(bind2maps[[:space:]](*)-s|bindkey|compdef -k)[[:space:]](*)(#b)(\"((?)(#c1,6))\"|\'((?)(#c1,6))\')(#B)(*) ]]; then
# ignores lines that are commentend out
# grabs first in '' or "" enclosed string with length between 1 and 6 characters
elif [[ "$cline" == [^#]#(bind2maps[[:space:]](*)-s|bindkey|compdef -k)[[:space:]](*)(#b)(\"((?)(#c1,6))\"|\'((?)(#c1,6))\')(#B)(*) ]]; then
- #description prevously found ? description not more than 2 lines away ? keybinding not empty ?
+ #description previously found ? description not more than 2 lines away ? keybinding not empty ?
if [[ -n $lastkeybind_desc && $num_lines_elapsed -lt 2 && -n $match[1] ]]; then
#substitute keybinding string with something readable
k=${${${${${${${match[1]/\\e\^h/<Alt><BS>}/\\e\^\?/<Alt><BS>}/\\e\[5~/<PageUp>}/\\e\[6~/<PageDown>}//(\\e|\^\[)/<Alt>}//\^/<Ctrl>}/3~/<Alt><Del>}
if [[ -n $lastkeybind_desc && $num_lines_elapsed -lt 2 && -n $match[1] ]]; then
#substitute keybinding string with something readable
k=${${${${${${${match[1]/\\e\^h/<Alt><BS>}/\\e\^\?/<Alt><BS>}/\\e\[5~/<PageUp>}/\\e\[6~/<PageDown>}//(\\e|\^\[)/<Alt>}//\^/<Ctrl>}/3~/<Alt><Del>}
autoload -Uz vcs_info
# The following autoload is disabled for now, since this setup includes a
# static version of the ‘add-zsh-hook’ function above. It needs to be
autoload -Uz vcs_info
# The following autoload is disabled for now, since this setup includes a
# static version of the ‘add-zsh-hook’ function above. It needs to be
- # reenabled as soon as that static definition is removed again.
+ # re-enabled as soon as that static definition is removed again.
#autoload -Uz add-zsh-hook
add-zsh-hook precmd prompt_$1_precmd
}
#autoload -Uz add-zsh-hook
add-zsh-hook precmd prompt_$1_precmd
}
# The following autoload is disabled for now, since this setup includes a
# static version of the ‘add-zsh-hook’ function above. It needs to be
# The following autoload is disabled for now, since this setup includes a
# static version of the ‘add-zsh-hook’ function above. It needs to be
-# reenabled as soon as that static definition is removed again.
+# re-enabled as soon as that static definition is removed again.
#zrcautoload add-zsh-hook || add-zsh-hook () { :; }
if [[ $NOPRECMD -eq 0 ]]; then
add-zsh-hook precmd grml_reset_screen_title
#zrcautoload add-zsh-hook || add-zsh-hook () { :; }
if [[ $NOPRECMD -eq 0 ]]; then
add-zsh-hook precmd grml_reset_screen_title
# Module zstat is loaded by default in grml zshrc, no extra action needed for that.
#
# Known bugs:
# Module zstat is loaded by default in grml zshrc, no extra action needed for that.
#
# Known bugs:
-# If you happen to come accross a symlink that points to a destination on an other partition
+# If you happen to come across a symlink that points to a destination on another partition
# with the same inode number, that will be marked as symlink loop though it is not.
# Two hints for this situation:
# I) Play lottery the same day, as you seem to be rather lucky right now.
# with the same inode number, that will be marked as symlink loop though it is not.
# Two hints for this situation:
# I) Play lottery the same day, as you seem to be rather lucky right now.
-#f5# cd to directoy and list files
+#f5# cd to directory and list files
function cl () {
emulate -L zsh
cd $1 && ls -a
function cl () {
emulate -L zsh
cd $1 && ls -a
-#f5# Create Directoy and \kbd{cd} to it
+#f5# Create Directory and \kbd{cd} to it
function mkcd () {
if (( ARGC != 1 )); then
printf 'usage: mkcd <new-directory>\n'
function mkcd () {
if (( ARGC != 1 )); then
printf 'usage: mkcd <new-directory>\n'
printf ' gname.group.name:description\n'
printf ' The '\'':description'\'' part is optional.\n'
printf ' That way you can search for group names (using -L, -l and -s) and put\n'
printf ' gname.group.name:description\n'
printf ' The '\'':description'\'' part is optional.\n'
printf ' That way you can search for group names (using -L, -l and -s) and put\n'
- printf ' your prefered groups into that file. That way you get rid of a lot of\n'
+ printf ' your preferred groups into that file. That way you get rid of a lot of\n'
printf ' typing by using completion: %% lu gmane -g <tab>\n'
printf '\nExamples:\n'
printf ' %% zstyle '\'':lookup:*:%s:*'\'' list-default true\n' ${backend}
printf ' typing by using completion: %% lu gmane -g <tab>\n'
printf '\nExamples:\n'
printf ' %% zstyle '\'':lookup:*:%s:*'\'' list-default true\n' ${backend}