mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-26 22:27:42 +08:00
Fix formatting of abbr example
I'm running fish 4.0b1 locally and I tried running `help abbr` and browsing the docs. I noticed one example which wasn't formatted correctly. I'm not too familiar with rst, but based on looking at the file, it seems that this is how example code should be represented. (cherry picked from commit d47a4899b4179addaedd73f18cc1219bb6d9564a)
This commit is contained in:
parent
0677c03689
commit
e1349b9c4a
@ -125,6 +125,7 @@ This first creates a function ``vim_edit`` which prepends ``vim`` before its arg
|
||||
This creates an abbreviation "4DIRS" which expands to a multi-line loop "template." The template enters each directory and then leaves it. The cursor is positioned ready to enter the command to run in each directory, at the location of the ``!``, which is itself erased.
|
||||
|
||||
::
|
||||
|
||||
abbr --command git co checkout
|
||||
|
||||
Turns "co" as an argument to "git" into "checkout". Multiple commands are possible, ``--command={git,hg}`` would expand "co" to "checkout" for both git and hg.
|
||||
|
Loading…
x
Reference in New Issue
Block a user