2010-12-05 16:57:06 +01:00
|
|
|
# @author Sebastian Tramp <mail@sebastian.tramp.name>
|
|
|
|
# @license http://opensource.org/licenses/gpl-license.php
|
|
|
|
#
|
|
|
|
# the main RC file (will be linked to ~/.zshrc)
|
|
|
|
#
|
|
|
|
|
2012-08-23 10:39:02 +02:00
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
export ZSH_CONFIG="$XDG_CONFIG_HOME/zsh"
|
|
|
|
export ZSH_CACHE="$XDG_CACHE_HOME/zsh"
|
|
|
|
mkdir -p $ZSH_CACHE
|
|
|
|
|
2010-12-28 20:48:15 +01:00
|
|
|
typeset -ga sources
|
2012-08-23 10:39:02 +02:00
|
|
|
sources+="$ZSH_CONFIG/options.zsh"
|
|
|
|
sources+="$ZSH_CONFIG/prompt.zsh"
|
|
|
|
sources+="$ZSH_CONFIG/functions.zsh"
|
|
|
|
sources+="$ZSH_CONFIG/aliases.zsh"
|
2011-01-03 11:38:47 +01:00
|
|
|
|
|
|
|
# highlights the live command line
|
|
|
|
# Cloned From: git://github.com/nicoulaj/zsh-syntax-highlighting.git
|
2012-08-23 10:39:02 +02:00
|
|
|
sources+="$ZSH_CONFIG/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
2011-01-03 11:38:47 +01:00
|
|
|
|
|
|
|
# provides the package name of a non existing executable
|
|
|
|
# (sudo apt-get install command-not-found)
|
2010-12-28 20:48:15 +01:00
|
|
|
sources+="/etc/zsh_command_not_found"
|
|
|
|
|
2011-01-03 11:38:47 +01:00
|
|
|
# Autojump: a cd command that learns
|
|
|
|
# Cloned From: git://github.com/joelthelion/autojump.git
|
2012-08-23 10:39:02 +02:00
|
|
|
sources+="$ZSH_CONFIG/autojump/autojump.zsh"
|
2011-01-03 11:38:47 +01:00
|
|
|
|
2011-02-07 17:18:41 +01:00
|
|
|
# Check for a system specific file
|
|
|
|
systemFile=`uname -s | tr "[:upper:]" "[:lower:]"`
|
2012-08-23 10:39:02 +02:00
|
|
|
sources+="$ZSH_CONFIG/$systemFile.zsh"
|
2011-02-07 17:18:41 +01:00
|
|
|
|
|
|
|
# Finally include the private.zsh file
|
2012-08-23 10:39:02 +02:00
|
|
|
sources+="$ZSH_CONFIG/private.zsh"
|
2011-02-07 17:18:41 +01:00
|
|
|
|
2012-08-23 10:39:02 +02:00
|
|
|
sources+="$ZSH_CONFIG/completion.zsh"
|
2012-08-22 15:21:22 +02:00
|
|
|
|
2011-02-07 19:50:26 +01:00
|
|
|
# try to include all sources
|
2010-12-28 20:48:15 +01:00
|
|
|
foreach file (`echo $sources`)
|
|
|
|
if [[ -a $file ]]; then
|
|
|
|
source $file
|
|
|
|
fi
|
|
|
|
end
|
2010-12-25 20:12:51 +01:00
|
|
|
|