Renamed plugin files to init.zsh.
Since plugins are under their own directories, the /plugins/foo/foo.plugin.zsh naming scheme is redundant. Naming the entry point of plugins init.zsh will encourage the splitting of large plugins into multiple files.
This commit is contained in:
parent
147ed7ec5e
commit
71d5e5625e
45 changed files with 7 additions and 7 deletions
|
@ -14,10 +14,10 @@ autoload -Uz compinit && compinit -i
|
|||
# Source function files.
|
||||
source "$OMZ/functions/init.zsh"
|
||||
|
||||
# Load all plugins defined in ~/.zshrc.
|
||||
# Source plugins defined in ~/.zshrc.
|
||||
for plugin in $plugins; do
|
||||
if [[ -f "$OMZ/plugins/$plugin/$plugin.plugin.zsh" ]]; then
|
||||
source "$OMZ/plugins/$plugin/$plugin.plugin.zsh"
|
||||
if [[ -f "$OMZ/plugins/$plugin/init.zsh" ]]; then
|
||||
source "$OMZ/plugins/$plugin/init.zsh"
|
||||
fi
|
||||
done
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
alias cloudapp="${0:r:r}.rb"
|
||||
|
2
plugins/cloudapp/init.zsh
Normal file
2
plugins/cloudapp/init.zsh
Normal file
|
@ -0,0 +1,2 @@
|
|||
alias cloudapp="${0:h}/cloudapp.rb"
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# This file integrates the history-substring-search script into oh-my-zsh.
|
||||
|
||||
source "${0:r:r}.zsh"
|
||||
source "${0:h}/history-substring-search.zsh"
|
||||
|
||||
if check-bool "$CASE_SENSITIVE"; then
|
||||
unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS
|
|
@ -24,7 +24,7 @@ COMPLETION_INDICATOR='false'
|
|||
plugins=(git)
|
||||
|
||||
# This will make you scream: OH MY ZSH!
|
||||
source "$OMZ/oh-my-zsh.zsh"
|
||||
source "$OMZ/init.zsh"
|
||||
|
||||
# Load the prompt theme (type prompt -l to list all themes).
|
||||
# Setting it to 'random' loads a random theme.
|
Loading…
Add table
Reference in a new issue