From 0b9c98c3724ed11c332cc7695f67febcac8c526f Mon Sep 17 00:00:00 2001 From: Faidon Liambotis Date: Tue, 17 Sep 2024 13:47:59 +0300 Subject: [PATCH] Fix typo Crtl+C -> Ctrl+C (#5685) Fix a few occurences across the tree. Also fix it retroactively in the CHANGELOG for folks that are going through older changes. --- CHANGELOG.rst | 4 ++-- docs/aliases.rst | 2 +- docs/xonshrc.rst | 2 +- xonsh/webconfig/main.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cb02d86b3..1448a2b74 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2721,7 +2721,7 @@ v0.8.6 * Exits after concatenating normal files which have a finite size * Continues to run for special files which do not have a size, such as ``/dev/random`` - * Is interruptable in all cases with Crtl-C. + * Is interruptable in all cases with Ctrl-C. * Callable aliases were not properly raising a ``CalledProcessError`` when they returned a non-zero exist status when ``$RAISE_SUBPROC_ERROR = True``. This has been fixed. @@ -4463,7 +4463,7 @@ v0.5.0 * Fixed many PEP8 violations that had gone unnoticed * Fix failure to detect an Anaconda python distribution if the python was install from the conda-forge channel. * current_branch will try and locate the vc binary once -* May now Crtl-C out of an infinite loop with a subprocess, such as +* May now Ctrl-C out of an infinite loop with a subprocess, such as ```while True: sleep 1``. * Fix for stdin redirects. * Backgrounding works with ``$XONSH_STORE_STDOUT`` diff --git a/docs/aliases.rst b/docs/aliases.rst index 2c2d95fb2..e160d757c 100644 --- a/docs/aliases.rst +++ b/docs/aliases.rst @@ -70,7 +70,7 @@ independent of the setting of the $AUTO_CONTINUE option. ``EOF``, ``exit``, and ``quit`` =================================== The commands ``EOF``, ``exit``, and ``quit`` all alias the same action, which is to -leave xonsh in a safe manner. Typing ``Crtl-d`` is the same as typing ``EOF`` and +leave xonsh in a safe manner. Typing ``Ctrl-d`` is the same as typing ``EOF`` and pressing enter. diff --git a/docs/xonshrc.rst b/docs/xonshrc.rst index caed37704..5d713444d 100644 --- a/docs/xonshrc.rst +++ b/docs/xonshrc.rst @@ -41,7 +41,7 @@ initializes your personal run control file (usually at ``~/.xonshrc``). To invo .. code-block:: xonshcon >>> xonfig web - Web config started at 'http://localhost:8421'. Hit Crtl+C to stop. + Web config started at 'http://localhost:8421'. Hit Ctrl+C to stop. 127.0.0.1 - - [23/Aug/2020 15:04:39] "GET / HTTP/1.1" 200 - This will open your default browser on a page served from a local server. You can exit the server by typing ``Ctrl+c`` at any time. diff --git a/xonsh/webconfig/main.py b/xonsh/webconfig/main.py index b8536e893..16d051d0b 100644 --- a/xonsh/webconfig/main.py +++ b/xonsh/webconfig/main.py @@ -138,7 +138,7 @@ def bind_server_to( httpd = cls(("", port), handler_cls) url = f"http://localhost:{port}" - print(f"Web config started at '{url}'. Hit Crtl+C to stop.") + print(f"Web config started at '{url}'. Hit Ctrl+C to stop.") if browser: import webbrowser