Permalink
Browse files

new files included in setup script

  • Loading branch information...
1 parent 8813b10 commit 2df10c181fcb592b5376a9aa99196a34719f81e9 Chris Kleinknecht committed Apr 3, 2012
Showing with 44 additions and 8 deletions.
  1. +3 −0 README
  2. +34 −8 dotzshrc
  3. +7 −0 setup.zsh
View
3 README
@@ -1 +1,4 @@
Various *rc files, organized according to my whims.
+
+Run `setup.zsh` to link each `dotfoo` file as `$HOME/.foo`, and move existing dotfiles to a backup dir.
+
View
@@ -1,6 +1,6 @@
ZSHRC=$HOME/.zshrc
-ALIASES=$HOME/.aliases
-AUTO_ALIASES=$ALIASES/auto
+export ALIASES=$HOME/.aliases
+export AUTO_ALIASES=$ALIASES/auto
PROMPTIFLE=$HOME/.prompt
PYTHONRC=$HOME/.pythonrc
@@ -32,11 +32,16 @@ aaa () { echo "alias $1=\"$2\"\t# autoadded on $(longstardate)" >> $AUTO_ALIASES
################################################################################
# and these are probably better set somewhere else
################################################################################
-setopt AUTO_CD
-setopt EXTENDED_GLOB
-#setopt SHARE_HISTORY # leaving this here to remind you never to set this again
+
+setopt INC_APPEND_HISTORY
+setopt EXTENDED_HISTORY
+setopt HIST_IGNORE_DUPS
+setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
+setopt HIST_FIND_NO_DUPS
+setopt HIST_EXPIRE_DUPS_FIRST
+
# problematic
setopt CDABLE_VARS
@@ -49,9 +54,6 @@ bindkey "^[[B" history-beginning-search-forward
# :nmap <Space> i
bindkey -M vicmd ' ' vi-insert
-setopt histignoredups
-setopt histignorespace
-
################################################################################
# uh, maybe move these? ########################################################
################################################################################
@@ -81,6 +83,21 @@ else
prompt pws
fi
+#http://deanproxy.com/blog/posts/2011/11/6-quick-and-easy-git-branch-prompt-for-zsh--and-a-quick-rant-.html
+parse_git_branch () {
+ git branch 2> /dev/null | grep "*" | sed -e 's/* \(.*\)/ (\1)/g'
+}
+
+parse_screen_session() {
+ echo $STY | sed -e "s/[0-9\.]*//"
+}
+
+# FIXME just update on git branch changes!
+export PROMPT=%{$fg[black]%}%{$bg[green]%}\[$(parse_screen_session)\]%{$reset_color%}$PROMPT
+
+#%K{white}%F{red}%(?..(%?%))%K{black}%F{white}%B%(2L.+.)%(1j.[%j].)%F{yellow}%(t.Ding!.%D{%L:%M})%f%k%b%#
+
+
# `man zshcompsys`
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _match _approximate
@@ -104,3 +121,12 @@ compinit
source $PYTHONRC
source $RUBYRC
+# move to pathmagic
+# macports
+export PATH=/opt/local/bin:/opt/local/sbin:$PATH
+export MANPATH=/opt/local/share/man:$MANPATH
+
+export PATH=/usr/local/bin:$PATH
+export PATH=/prog:$PATH
+export PATH=/prog/macvim/src/MacVim:$PATH
+
View
@@ -17,8 +17,15 @@ function dotrelink () {
cd $HOME
mkdir $backupdir
+ # nope
+ #for f in $(find $dotdir -type -f -name "*dot"); do
+ #dotrelink $f $(echo $f | sed "s/dot/./")
+ #done
+
dotrelink dotaliases .aliases
+ dotrelink dotctags .ctags
dotrelink dotinputrc .inputrc
+ dotrelink dotpentadactylrc .pentadactylrc
dotrelink dotpythonrc .pythonrc
dotrelink dotrubyrc .rubyrc
dotrelink dotscreenrc .screenrc

0 comments on commit 2df10c1

Please sign in to comment.