From 297cf2d7d711b5dd5f9921f2723bf60e678bed51 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Fri, 7 Oct 2022 05:36:47 -0700 Subject: [PATCH] Cheatsheet: Document remote URL functionality for `take` (#16) The lack of documentation for the remote URL functionality was pointed out over here [1]. [1] https://github.com/ohmyzsh/ohmyzsh/pull/2029#issuecomment-1213256155 --- Cheatsheet.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cheatsheet.md b/Cheatsheet.md index 5766549..875cc63 100644 --- a/Cheatsheet.md +++ b/Cheatsheet.md @@ -17,7 +17,8 @@ Quick reference: | Command | Description | | :-------------- | :----------------------------------------------------------------------------------------- | | `alias` | List all aliases | -| `take` / `mkcd` | Create a new directory and change to it, will create intermediate directories as required. | +| `mkcd` | Create a new directory and change to it, will create intermediate directories as required. | +| `take` | Like `mkcd`, but also knows how to handle remote URLs. When given an argument that looks like a URL (something that ends in `.git` or `.tar.(gz\|bz2\|xz)`), download the remote resource and extract it (if necessary) into the current directory. Then change to the newly extracted/downloaded/cloned directory. | | `zsh_stats` | Get a list of the top 20 commands and how many times they have been run. | ## Directory