forked from seebi/zshrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax change for array push (needed to run under cygwin)
- Loading branch information
Showing
1 changed file
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|