Skip to content

Commit

Permalink
syntax change for array push (needed to run under cygwin)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrekle committed Feb 12, 2013
1 parent 9c0f70a commit c615234
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions zshrc
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
# @author Sebastian Tramp <[email protected]>
# @license http://opensource.org/licenses/gpl-license.php
#
# the main RC file (will be linked to ~/.zshrc)
# the main RC file (should be linked to ~/.zshrc)
#

# first include of the environment
source $HOME/.config/zsh/environment.zsh

typeset -ga sources
sources+="$ZSH_CONFIG/environment.zsh"
sources+="$ZSH_CONFIG/options.zsh"
sources+="$ZSH_CONFIG/prompt.zsh"
sources+="$ZSH_CONFIG/functions.zsh"
sources+="$ZSH_CONFIG/aliases.zsh"
sources=()
sources+=("$ZSH_CONFIG/environment.zsh")
sources+=("$ZSH_CONFIG/options.zsh")
sources+=("$ZSH_CONFIG/prompt.zsh")
sources+=("$ZSH_CONFIG/functions.zsh")
sources+=("$ZSH_CONFIG/aliases.zsh")

# highlights the live command line
# Cloned From: git://github.com/nicoulaj/zsh-syntax-highlighting.git
sources+="$ZSH_CONFIG/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
sources+=("$ZSH_CONFIG/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh")

# provides the package name of a non existing executable
# (sudo apt-get install command-not-found)
sources+="/etc/zsh_command_not_found"
#sources+=("/etc/zsh_command_not_found")

# Autojump: a cd command that learns
# Cloned From: git://github.com/joelthelion/autojump.git
sources+="$ZSH_CONFIG/autojump/autojump.zsh"
sources+=("$ZSH_CONFIG/autojump/autojump.zsh")

# Check for a system specific file
systemFile=`uname -s | tr "[:upper:]" "[:lower:]"`
sources+="$ZSH_CONFIG/$systemFile.zsh"
sources+=("$ZSH_CONFIG/$systemFile.zsh")

# Private aliases and adoptions
sources+="$ZSH_CONFIG/private.zsh"
#sources+=("$ZSH_CONFIG/private.zsh")

# completion config needs to be after system and private config
sources+="$ZSH_CONFIG/completion.zsh"
sources+=("$ZSH_CONFIG/completion.zsh")

# Private aliases and adoptions added at the very end (e.g. to start byuobu)
sources+="$ZSH_CONFIG/private.final.zsh"
sources+=("$ZSH_CONFIG/private.final.zsh")

# try to include all sources
foreach file (`echo $sources`)
if [[ -a $file ]]; then
source $file
for file in $sources
do
if [[ -a "$file" ]]; then
source "$file"
else
#echo "not found $file"
fi
end
done

0 comments on commit c615234

Please sign in to comment.