mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
Adding ls alias suggestion to Windows guide.
This commit is contained in:
parent
b330ff277d
commit
3781d72b7a
1 changed files with 14 additions and 13 deletions
|
@ -86,12 +86,13 @@ the ``.``, like this:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Many people create a ``d`` alias for the ``dir`` command to save
|
Many people create a ``d`` or ``ls`` alias for the ``dir`` command to save
|
||||||
typing and avoid the ambiguity altogether:
|
typing and avoid the ambiguity altogether:
|
||||||
|
|
||||||
.. code-block:: xonshcon
|
.. code-block:: xonshcon
|
||||||
|
|
||||||
>>> aliases['d'] = ['cmd', '/c', 'dir']
|
>>> aliases['d'] = ['cmd', '/c', 'dir']
|
||||||
|
>>> aliases['ls'] = 'dir'
|
||||||
|
|
||||||
You can add this alias to your ``~/.xonshrc`` to have it always
|
You can add aliases to your ``~/.xonshrc`` to have it always
|
||||||
available when xonsh starts.
|
available when xonsh starts.
|
||||||
|
|
Loading…
Add table
Reference in a new issue