Browse Source

The functions directory should only hold functions.

master
Sorin Ionescu 13 years ago
parent
commit
faeca82831
  1. 0
      alias.zsh
  2. 0
      completion.zsh
  3. 0
      directory.zsh
  4. 0
      environment.zsh
  5. 12
      functions/init.zsh
  6. 0
      helper.zsh
  7. 0
      history.zsh
  8. 30
      init.zsh
  9. 0
      keyboard.zsh
  10. 0
      spectrum.zsh
  11. 0
      terminal.zsh
  12. 0
      utility.zsh

0
functions/alias.zsh → alias.zsh

0
functions/completion.zsh → completion.zsh

0
functions/directory.zsh → directory.zsh

0
functions/environment.zsh → environment.zsh

12
functions/init.zsh

@ -1,12 +0,0 @@
# Source function files (the order matters).
source "${0:h}/helper.zsh"
source "${0:h}/environment.zsh"
source "${0:h}/terminal.zsh"
source "${0:h}/keyboard.zsh"
source "${0:h}/completion.zsh"
source "${0:h}/history.zsh"
source "${0:h}/directory.zsh"
source "${0:h}/alias.zsh"
source "${0:h}/spectrum.zsh"
source "${0:h}/utility.zsh"

0
functions/helper.zsh → helper.zsh

0
functions/history.zsh → history.zsh

30
init.zsh

@ -6,13 +6,27 @@ if [[ "$TERM" == 'dumb' ]]; then
fi fi
# Add functions to fpath. # Add functions to fpath.
fpath=($OMZ/themes/*(/) $OMZ/plugins/${^plugins} $OMZ/functions $fpath) fpath=(
$OMZ/themes/*(/N)
# Load and initialize the completion system. ${plugins:+$OMZ/plugins/${^plugins}}
$OMZ/functions
$fpath
)
# Load and initialize the completion system ignoring insecure directories.
autoload -Uz compinit && compinit -i autoload -Uz compinit && compinit -i
# Source function files. # Source files (the order matters).
source "$OMZ/functions/init.zsh" source "$OMZ/helper.zsh"
source "$OMZ/environment.zsh"
source "$OMZ/terminal.zsh"
source "$OMZ/keyboard.zsh"
source "$OMZ/completion.zsh"
source "$OMZ/history.zsh"
source "$OMZ/directory.zsh"
source "$OMZ/alias.zsh"
source "$OMZ/spectrum.zsh"
source "$OMZ/utility.zsh"
# Source plugins defined in ~/.zshrc. # Source plugins defined in ~/.zshrc.
for plugin in $plugins; do for plugin in $plugins; do
@ -20,14 +34,16 @@ for plugin in $plugins; do
source "$OMZ/plugins/$plugin/init.zsh" source "$OMZ/plugins/$plugin/init.zsh"
fi fi
done done
unset plugin
unset plugins
# Set PATH for Mac OS X GUI applications (requires re-login). # Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
launchctl setenv PATH "$PATH" &! launchctl setenv PATH "$PATH" &!
fi fi
# Load and run the prompt theming system. # Load and run the prompt theming system.
autoload -Uz promptinit && promptinit -i autoload -Uz promptinit && promptinit
# Compile zcompdump, if modified, to increase startup speed. # Compile zcompdump, if modified, to increase startup speed.
if [[ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" ]] || [[ ! -f "$HOME/.zcompdump.zwc" ]]; then if [[ "$HOME/.zcompdump" -nt "$HOME/.zcompdump.zwc" ]] || [[ ! -f "$HOME/.zcompdump.zwc" ]]; then

0
functions/keyboard.zsh → keyboard.zsh

0
functions/spectrum.zsh → spectrum.zsh

0
functions/terminal.zsh → terminal.zsh

0
functions/utility.zsh → utility.zsh

Loading…
Cancel
Save