mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Rewrote the Git plugin and Sorin theme.
This commit is contained in:
parent
448cda2a57
commit
225ea89e74
8 changed files with 708 additions and 386 deletions
15
plugins/git/completion.zsh
Normal file
15
plugins/git/completion.zsh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Get the latest Git completion.
|
||||
completion_file="${0:h}/_git"
|
||||
completion_file_url='http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD'
|
||||
if [[ ! -e "$completion_file" ]] && (( $+commands[git] )); then
|
||||
if (( $+commands[curl] )); then
|
||||
curl -L "$completion_file_url" -o "$completion_file" &> /dev/null &!
|
||||
fi
|
||||
|
||||
if (( $+commmands[wget] )); then
|
||||
wget -C "$completion_file_url" -O "$completion_file" &> /dev/null &!
|
||||
fi
|
||||
fi
|
||||
unset completion_file
|
||||
unset completion_file_url
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue