1
0
Fork 0

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.
pull/3/head
Sorin Ionescu 13 years ago
parent 147ed7ec5e
commit 71d5e5625e

@ -14,10 +14,10 @@ autoload -Uz compinit && compinit -i
# Source function files. # Source function files.
source "$OMZ/functions/init.zsh" source "$OMZ/functions/init.zsh"
# Load all plugins defined in ~/.zshrc. # Source plugins defined in ~/.zshrc.
for plugin in $plugins; do for plugin in $plugins; do
if [[ -f "$OMZ/plugins/$plugin/$plugin.plugin.zsh" ]]; then if [[ -f "$OMZ/plugins/$plugin/init.zsh" ]]; then
source "$OMZ/plugins/$plugin/$plugin.plugin.zsh" source "$OMZ/plugins/$plugin/init.zsh"
fi fi
done done

@ -1,2 +0,0 @@
alias cloudapp="${0:r:r}.rb"

@ -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. # 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 if check-bool "$CASE_SENSITIVE"; then
unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS

@ -24,7 +24,7 @@ COMPLETION_INDICATOR='false'
plugins=(git) plugins=(git)
# This will make you scream: OH MY ZSH! # 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). # Load the prompt theme (type prompt -l to list all themes).
# Setting it to 'random' loads a random theme. # Setting it to 'random' loads a random theme.
Loading…
Cancel
Save