[zsh] update links to Oh My Zsh

This commit is contained in:
Dmytro Meleshko 2019-12-21 21:19:24 +02:00
parent 914f01de14
commit 30e517a40c
4 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
# http://zsh.sourceforge.net/Doc/Release/Completion-System.html
# https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/completion.zsh
# https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/completion.zsh
# load fancier completion menu which (most notably) supports `list-colors`
zmodload zsh/complist

View file

@ -62,8 +62,8 @@ fi
eval "clipcopy(){$copy_cmd;};clippaste(){$paste_cmd;}"
unset copy_cmd paste_cmd
# for compatibility with Oh-My-Zsh plugins
# Source: https://github.com/robbyrussell/oh-my-zsh/blob/5911aea46c71a2bcc6e7c92e5bebebf77b962233/lib/git.zsh#L58-L71
# for compatibility with Oh My Zsh plugins
# Source: https://github.com/ohmyzsh/ohmyzsh/blob/5911aea46c71a2bcc6e7c92e5bebebf77b962233/lib/git.zsh#L58-L71
git_current_branch() {
if [[ "$(command git rev-parse --is-inside-work-tree)" != true ]]; then
return 1

View file

@ -17,7 +17,7 @@ _plugin completions 'zsh-users/zsh-completions'
# compinit {{{
# note that completion system must be initialized after zsh-completions and
# before oh-my-zsh
# before Oh My Zsh
autoload -U compinit
run_compdump=1
@ -44,12 +44,12 @@ _plugin completions 'zsh-users/zsh-completions'
unset run_compdump
# }}}
# Oh-My-Zsh {{{
# Oh My Zsh {{{
omz_features=(key-bindings termsupport)
omz_plugins=(git extract fasd)
_plugin oh-my-zsh 'robbyrussell/oh-my-zsh' \
_plugin ohmyzsh 'ohmyzsh/ohmyzsh' \
load='lib/'${^omz_features}'.zsh' \
load='plugins/'${^omz_plugins}'/*.plugin.zsh' \
before_load='ZSH="$plugin_dir"' \

View file

@ -293,8 +293,8 @@ plugin() {
if (( ${#plugin_load} == 0 )); then
# default loading patterns:
# - *.plugin.zsh for most plugins and Oh-My-Zsh ones
# - *.zsh-theme for most themes and Oh-My-Zsh ones
# - *.plugin.zsh for most plugins and Oh My Zsh ones
# - *.zsh-theme for most themes and Oh My Zsh ones
# - init.zsh for Prezto plugins
# ([1]) means "expand only to the first match"
plugin_load=("(*.plugin.zsh|*.zsh-theme|init.zsh)([1])")