diff --git a/custom/misc.zsh b/custom/misc.zsh new file mode 100644 index 000000000..37b44c67f --- /dev/null +++ b/custom/misc.zsh @@ -0,0 +1,54 @@ +# Customize to your needs... +if [ -d ~/bin ] ; then + PATH=~/bin:"${PATH}" +fi + +if [ -d ~/lib ] ; then + LD_LIBRARY_PATH=~/lib:"${LD_LIBRARY_PATH}" + MONO_PATH=~/lib:"${MONO_PATH}" + PERL5LIB=~/lib/perl5:"${PERL5LIB}" + PKG_CONFIG_PATH=$HOME/lib/pkgconfig:"${PKG_CONFIG_PATH}" +fi + +if [ -d ~/share ] ; then + PERL5LIB=~/share/perl5:"${PERL5LIB}" + MANPATH=~/share/man:"${MANPATH}" +fi + +# local manpages +if [ -d /opt/local/man ] ; then + MANPATH=$MANPATH:/opt/local/man +fi + +#homebrew stuff +if [ -d /usr/local/bin ] ; then + PATH=/usr/local/bin:$PATH +fi +if [ -d /usr/local/sbin ] ; then + PATH=/usr/local/sbin:$PATH +fi + +alias aquamacs='/Applications/Aquamacs.app/Contents/MacOS/Aquamacs' + +export EDITOR='/Applications/Aquamacs.app/Contents/MacOS/Aquamacs' + +export PATH MANPATH MONO_PATH PERL5LIB PKG_CONFIG_PATH + +setopt complete_in_word # ~/Dev/pro -> -> ~/Development/project +setopt dvorak # use spelling correction for dv keyboards +setopt hist_ignore_dups # when I run a command several times, only store one +setopt hist_no_functions # don't show function definitions in history +setopt hist_reduce_blanks # reduce whitespace in history +setopt hist_verify # ask me before running a command line with history sub +setopt interactive_comments # why not? +setopt list_types # show ls -F style marks in file completion +setopt no_beep # don't beep on error +setopt numeric_glob_sort # when globbing numbered files, use real counting + +bindkey -e # use emacs keymap + +export LANG="C" +# this is for svn +export LC_CTYPE=en_US.UTF-8 +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 \ No newline at end of file diff --git a/themes/jupp.zsh-theme b/themes/jupp.zsh-theme new file mode 100644 index 000000000..d915a5f07 --- /dev/null +++ b/themes/jupp.zsh-theme @@ -0,0 +1,35 @@ +#!/usr/bin/env zsh + +# this is based on the muse theme, but modified by jupp0r at gmail.com + +setopt promptsubst + +autoload -U add-zsh-hook + +PROMPT_SUCCESS_COLOR=$FG[117] +PROMPT_FAILURE_COLOR=$FG[124] +PROMPT_VCS_INFO_COLOR=$FG[242] +PROMPT_DATE_COLOR=$FG[118] +PROMPT_DIR_COLOR=$FG[142] +PROMPT_DATE_BOUNDARY_COLOR=$FG[117] +PROMPT_PROMPT=$FG[077] +GIT_DIRTY_COLOR=$FG[133] +GIT_CLEAN_COLOR=$FG[118] +GIT_PROMPT_INFO=$FG[012] + +PROMPT='%(0?..%{$PROMPT_FAILURE_COLOR%}%?%{$reset_color%} )%{$PROMPT_SUCCESS_COLOR%}%n@%m %{$PROMPT_DIR_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} ' +RPROMPT=' %{$PROMPT_DATE_BOUNDARY_COLOR%}<%{$PROMPT_DATE_COLOR%} %* %W %{$PROMPT_DATE_BOUNDARY_COLOR%}>%{$reset_color%} ' + +#RPS1="${return_code}" + +ZSH_THEME_GIT_PROMPT_PREFIX="(" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" + +ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"