aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorErovia <Erovia@users.noreply.github.com>2021-11-04 21:21:09 +0000
committerGitHub <noreply@github.com>2021-11-05 08:21:09 +1100
commitc8b09d0d4ab73c88c6ae84718f0c890640dfbece (patch)
treebf7d61aec282c9cedbfd97d4ffc67092f2396966 /docs
parentfefd7fdc5145b677da7b0e1d75bab11eac9db605 (diff)
downloadqmk_firmware-c8b09d0d4ab73c88c6ae84718f0c890640dfbece.tar.gz
qmk_firmware-c8b09d0d4ab73c88c6ae84718f0c890640dfbece.zip
CLI: Add 'cd' subcommand (#12584)
* CLI: Add 'cd' subcommand Go to your qmk_firmware dir with ease. * Fix for Windows and do not run if already under QMK Home * Make flake8 happy * Fix prompt for Windows * Make flake8 happy once again * I'll get it right eventually * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * Add subcommand to __init__.py and fixup after rebase * Update Windows code to use milc's run * Unify the subshell starting with os.execl * Exit with error msg when output is redirected to non-TTY. * Revert Windows-specific code Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/cli_commands.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/cli_commands.md b/docs/cli_commands.md
index e498f3b22..8f5117633 100644
--- a/docs/cli_commands.md
+++ b/docs/cli_commands.md
@@ -118,6 +118,20 @@ This command lets you configure the behavior of QMK. For the full `qmk config` d
118qmk config [-ro] [config_token1] [config_token2] [...] [config_tokenN] 118qmk config [-ro] [config_token1] [config_token2] [...] [config_tokenN]
119``` 119```
120 120
121## `qmk cd`
122
123This command opens a new shell in your `qmk_firmware` directory.
124
125Note that if you are already somewhere within `QMK_HOME` (for example, the `keyboards/` folder), nothing will happen.
126
127To exit out into the parent shell, simply type `exit`.
128
129**Usage**:
130
131```
132qmk cd
133```
134
121## `qmk console` 135## `qmk console`
122 136
123This command lets you connect to keyboard consoles to get debugging messages. It only works if your keyboard firmware has been compiled with `CONSOLE_ENABLE=yes`. 137This command lets you connect to keyboard consoles to get debugging messages. It only works if your keyboard firmware has been compiled with `CONSOLE_ENABLE=yes`.