diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index 3730f30c1..73b5da89a 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -197,7 +197,7 @@ To avoid needless typing, a frequently-run command like ``git checkout`` can be abbr -a gco git checkout -After entering ``gco`` and pressing :kbd:`Space` or :kbd:`Enter`, the ``gco`` will turn into ``git checkout`` in the command line. +After entering ``gco`` and pressing :kbd:`Space` or :kbd:`Enter`, a ``gco`` in command position will turn into ``git checkout`` in the command line. If you want to use a literal ``gco`` sometimes, use :kbd:`Control`\ +\ :kbd:`Space` [#]_. This is a lot more powerful, for example you can make going up a number of directories easier with this:: @@ -210,6 +210,8 @@ Now, ``..`` transforms to ``cd ../``, while ``...`` turns into ``cd ../../`` and The advantage over aliases is that you can see the actual command before using it, add to it or change it, and the actual command will be stored in history. +.. [#] Any binding that executes the ``expand-abbr`` or ``execute`` :ref:`bind function ` will expand abbreviations. By default :kbd:`Control`\ +\ :kbd:`Space` is bound to just inserting a space. + .. _title: Programmable title