diff options
| author | Anton Bobov <anton@bobov.name> | 2025-01-12 17:09:50 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2025-01-12 17:10:57 +0500 |
| commit | 9506dfc7c56f22296e69d750b1262a2c82bcf252 (patch) | |
| tree | 49b23b3c3a5113a4eea0bd6e55e9e454a9ace992 | |
| parent | 78e60de35033a92279b5e3facbe2581bfe8fdb83 (diff) | |
zsh: Fix git clone function
Fix cloning repository with '.git' in middle of the repository name.
| -rw-r--r-- | files/.zsh/rc/S50_functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index 86cb63c..b446f16 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -4,7 +4,7 @@ mcd() { compdef _directories mcd gclone() { - git clone --recursive "$1" && cd "$(basename "$1" | sed -e 's/\.git//')" + git clone --recursive "$1" && cd "$(basename "$1" | sed -e 's/\.git$//')" } wcc() { |
