summaryrefslogtreecommitdiff
path: root/plugins/gitfast
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2024-03-07 02:47:15 -0600
committerGitHub <noreply@github.com>2024-03-07 09:47:15 +0100
commit2a71aa50170db6892abb3e173ba425c554744b37 (patch)
treec599ac788db4ab54028e83463f1b18bc06f6b0fc /plugins/gitfast
parentfd01fd66ce27c669e5ffaea94460a37423d1e134 (diff)
downloadzsh-2a71aa50170db6892abb3e173ba425c554744b37.tar.gz
zsh-2a71aa50170db6892abb3e173ba425c554744b37.tar.bz2
zsh-2a71aa50170db6892abb3e173ba425c554744b37.zip
chore(gitfast): remove update script (#12262)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diffstat (limited to 'plugins/gitfast')
-rw-r--r--plugins/gitfast/README.md6
-rw-r--r--plugins/gitfast/gitfast.plugin.zsh2
-rwxr-xr-xplugins/gitfast/update8
3 files changed, 1 insertions, 15 deletions
diff --git a/plugins/gitfast/README.md b/plugins/gitfast/README.md
index fed4b120a..60b84a23c 100644
--- a/plugins/gitfast/README.md
+++ b/plugins/gitfast/README.md
@@ -7,9 +7,3 @@ To use it, add `gitfast` to the plugins array in your zshrc file:
```zsh
plugins=(... gitfast)
```
-
-## Aliases
-
-An earlier version of the plugin also loaded the git plugin. If you want to keep those
-aliases enable the [git plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git)
-as well.
diff --git a/plugins/gitfast/gitfast.plugin.zsh b/plugins/gitfast/gitfast.plugin.zsh
index a6db0c6bd..c456eff7f 100644
--- a/plugins/gitfast/gitfast.plugin.zsh
+++ b/plugins/gitfast/gitfast.plugin.zsh
@@ -1,6 +1,6 @@
# Handle $0 according to the standard:
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
-0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
+0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}"
0="${${(M)0:#/*}:-$PWD/$0}"
source "${0:A:h}/git-prompt.sh"
diff --git a/plugins/gitfast/update b/plugins/gitfast/update
deleted file mode 100755
index feb13ff7e..000000000
--- a/plugins/gitfast/update
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-url="https://raw.githubusercontent.com/felipec/git-completion"
-version="1.3.7"
-
-curl -s -o _git "${url}/v${version}/git-completion.zsh" &&
-curl -s -o git-completion.bash "${url}/v${version}/git-completion.bash" &&
-curl -s -o git-prompt.sh "${url}/v${version}/git-prompt.sh"