Skip to content

Commit 4f08801

Browse files
committed
Formating fixes.
1 parent d7a2dd9 commit 4f08801

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

README.org

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@ Grab a fully featured Zsh configuration:
3636
% autoload run-help
3737
% echo foo | xargs <esc-h>
3838

39-
and:
39+
and then:
4040

4141
% git commit<esc-h>
4242

43-
or even
43+
or even ('g' being an alias for git and 'co' and git alias for commit):
4444

4545
% g co<esc-h>
4646
#+END_EXAMPLE
47-
4847
* Completion System
4948
#+BEGIN_EXAMPLE
5049
% autoload compinit && compinit
@@ -97,7 +96,7 @@ vs.
9796
% <ctrl-r>scp*r
9897
#+END_EXAMPLE
9998
** Zsh Line Editor (AKA zle)
100-
ctrl-x-z provides help_zle_parse_keybindings in grml-zshrc
99+
ctrl-x-z provides help\_zle\_parse\_keybindings in grml-zshrc
101100
** Some interesting keybindings
102101
| Keybinding | Meaning |
103102
|------------+--------------------------------------------------------------------|
@@ -141,7 +140,8 @@ precmd () { RPROMPT="%(?..:()%" }
141140
** Exit code in prompt, if it's not exit code 0
142141
** Special functions
143142
*** precmd(): executed before each prompt - e.g. for setting prompt information
144-
*** preexec(): running before every command - e.g. for setting GNU screen title* Get VCS information into your prompt - vcs_info
143+
*** preexec(): running before every command - e.g. for setting GNU screen title
144+
* Get VCS information into your prompt - vcs_info
145145
#+BEGIN_EXAMPLE
146146
autoload -Uz vcs_info
147147
precmd() {
@@ -151,7 +151,6 @@ precmd() {
151151
}
152152
PS1="%m%(1v.%F{green}%1v%f.)%# "
153153
#+END_EXAMPLE
154-
155154
* Hashed directories
156155
#+BEGIN_EXAMPLE
157156
% hash -d doc=/usr/share/doc
@@ -219,10 +218,11 @@ cd () {
219218
% cd /etc/fstab
220219
#+END_EXAMPLE
221220
** grml-zsh-fg
221+
#+BEGIN_EXAMPLE
222222
% vim # ... <ctrl-z>
223223
% echo foobar
224224
% <ctrl-z>
225-
225+
#+END_EXAMPLE
226226
** sudo-command-line
227227
#+BEGIN_EXAMPLE
228228
% which sudo-command-line
@@ -256,11 +256,18 @@ sudo-command-line () {
256256
#+END_EXAMPLE
257257
* FAQ
258258
1) Q: How to I get a listing of all my currently in use options?
259-
Answer: run setopt ksh_option_print && setopt to get a listing of all current settings
259+
Answer:
260+
#+BEGIN_EXAMPLE
261+
setopt ksh_option_print && setopt
262+
#+END_EXAMPLE
260263
2) Q: Why do I get "zsh: command not found:" even though I just installed the program?
261-
Answer: run 'rehash' or use completion system as provided by grml-zshrc
264+
Answer: execute:
265+
#+BEGIN_EXAMPLE
266+
% rehash
267+
#+END_EXAMPLE
268+
or use completion system as provided by grml-zshrc (completion will rehash automatically).
262269
3) Q: What's this strange word splitting thing?
263-
Answer: http://zsh.sourceforge.net/FAQ/zshfaq03.html =>
270+
Answer: see http://zsh.sourceforge.net/FAQ/zshfaq03.html
264271
#+BEGIN_EXAMPLE
265272
% var="foo bar"
266273
% args() { echo $#; }
@@ -270,7 +277,6 @@ sudo-command-line () {
270277
% args $var
271278
2
272279
#+END_EXAMPLE
273-
274280
* Resources
275281
** Zsh Homepage: http://zsh.sourceforge.net/
276282
** Zsh Wiki: http://zshwiki.org

0 commit comments

Comments
 (0)