Skip to content
Browse files

started to use grml's zsh configs

  • Loading branch information...
1 parent 2f2900c commit dcafcdf896008c8e177f025bfba51b015bf7763a @graysky2 committed Jan 19, 2013
Showing with 5 additions and 176 deletions.
  1. +5 −11 dotfiles/shell/.zshrc
  2. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/README.md
  3. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/brackets/README.md
  4. 0 ...sh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/brackets/brackets-highlighter.zsh
  5. 0 ...highlighting → .zsh-syntax-highlighting}/highlighters/brackets/test-data/mismatch-patentheses.zsh
  6. 0 ...x-highlighting → .zsh-syntax-highlighting}/highlighters/brackets/test-data/nested-parentheses.zsh
  7. 0 ...x-highlighting → .zsh-syntax-highlighting}/highlighters/brackets/test-data/quoted-patentheses.zsh
  8. 0 ...x-highlighting → .zsh-syntax-highlighting}/highlighters/brackets/test-data/simple-parentheses.zsh
  9. 0 ...highlighting → .zsh-syntax-highlighting}/highlighters/brackets/test-data/unclosed-patentheses.zsh
  10. 0 ...ighlighting → .zsh-syntax-highlighting}/highlighters/brackets/test-data/unclosed-patentheses2.zsh
  11. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/cursor/README.md
  12. 0 ...sh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/cursor/cursor-highlighter.zsh
  13. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/README.md
  14. 0 .../{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/main-highlighter.zsh
  15. 0 .../{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/assign.zsh
  16. 0 ...ax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/multiple-redirections.zsh
  17. 0 .../zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/path-space- .zsh
  18. 0 ...h-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/path-tilde-home.zsh
  19. 0 ...-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/path-tilde-named.zsh
  20. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/path.zsh
  21. 0 ...sh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/simple-command.zsh
  22. 0 ...yntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/simple-redirection.zsh
  23. 0 ...h-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/main/test-data/unknown-command.zsh
  24. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/pattern/README.md
  25. 0 .../zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/pattern/pattern-highlighter.zsh
  26. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/root/README.md
  27. 0 .../{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/highlighters/root/root-highlighter.zsh
  28. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/tests/README.md
  29. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/tests/test-highlighting.zsh
  30. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/tests/test-perfs.zsh
  31. 0 shell/{.zsh/zsh-syntax-highlighting → .zsh-syntax-highlighting}/zsh-syntax-highlighting.zsh
  32. +0 −13 shell/.zsh/lib/appearance.zsh
  33. +0 −49 shell/.zsh/lib/completion.zsh
  34. +0 −11 shell/.zsh/lib/correction.zsh
  35. +0 −14 shell/.zsh/lib/directories.zsh
  36. +0 −10 shell/.zsh/lib/history.zsh
  37. +0 −40 shell/.zsh/lib/keys.zsh
  38. +0 −28 shell/.zsh/lib/spectrum.zsh
View
16 dotfiles/shell/.zshrc
@@ -1,17 +1,11 @@
-# https://github.com/zsh-users/zsh-syntax-highlighting
-[[ -f $HOME/.zsh/zsh-syntax-highlighting/*.zsh ]] && . $HOME/.zsh/zsh-syntax-highlighting/*.zsh
+unalias j # keep autojump bound to j
-ZSH=$HOME/.zsh
-for config_file ($ZSH/lib/*.zsh) source $config_file # load zsh specific stuff
+# https://github.com/zsh-users/zsh-syntax-highlighting
+[[ -f $HOME/zsh-syntax-highlighting/*.zsh ]] && . $HOME/zsh-syntax-highlighting/*.zsh
-for i in aliases bashrc2 commonrc functions zsh; do
+for i in aliases bashrc2 commonrc functions; do
[[ -f $HOME/.$i ]] && . $HOME/.$i;
done
-PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[white]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) %#%{$reset_color%} '
+#PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[white]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) %#%{$reset_color%} '
#PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[white]%}facade@)%m %{$fg_bold[blue]%}%(!.%1~.%~) %#%{$reset_color%} '
-
-REPORTTIME=5 # report about cpu-/system-/user-time of command if running longer than 5 seconds
-autoload -U compinit
-compinit -i
-zstyle ':completion:*' rehash yes
View
0 ...yntax-highlighting/highlighters/README.md → ...yntax-highlighting/highlighters/README.md
File renamed without changes.
View
0 ...hlighting/highlighters/brackets/README.md → ...hlighting/highlighters/brackets/README.md
File renamed without changes.
View
0 ...ighters/brackets/brackets-highlighter.zsh → ...ighters/brackets/brackets-highlighter.zsh
File renamed without changes.
View
0 ...ackets/test-data/mismatch-patentheses.zsh → ...ackets/test-data/mismatch-patentheses.zsh
File renamed without changes.
View
0 ...brackets/test-data/nested-parentheses.zsh → ...brackets/test-data/nested-parentheses.zsh
File renamed without changes.
View
0 ...brackets/test-data/quoted-patentheses.zsh → ...brackets/test-data/quoted-patentheses.zsh
File renamed without changes.
View
0 ...brackets/test-data/simple-parentheses.zsh → ...brackets/test-data/simple-parentheses.zsh
File renamed without changes.
View
0 ...ackets/test-data/unclosed-patentheses.zsh → ...ackets/test-data/unclosed-patentheses.zsh
File renamed without changes.
View
0 ...ckets/test-data/unclosed-patentheses2.zsh → ...ckets/test-data/unclosed-patentheses2.zsh
File renamed without changes.
View
0 ...ighlighting/highlighters/cursor/README.md → ...ighlighting/highlighters/cursor/README.md
File renamed without changes.
View
0 ...ighlighters/cursor/cursor-highlighter.zsh → ...ighlighters/cursor/cursor-highlighter.zsh
File renamed without changes.
View
0 ...-highlighting/highlighters/main/README.md → ...-highlighting/highlighters/main/README.md
File renamed without changes.
View
0 ...ng/highlighters/main/main-highlighter.zsh → ...ng/highlighters/main/main-highlighter.zsh
File renamed without changes.
View
0 ...ng/highlighters/main/test-data/assign.zsh → ...ng/highlighters/main/test-data/assign.zsh
File renamed without changes.
View
0 .../main/test-data/multiple-redirections.zsh → .../main/test-data/multiple-redirections.zsh
File renamed without changes.
View
0 ...hlighters/main/test-data/path-space- .zsh → ...hlighters/main/test-data/path-space- .zsh
File renamed without changes.
View
0 ...ghters/main/test-data/path-tilde-home.zsh → ...ghters/main/test-data/path-tilde-home.zsh
File renamed without changes.
View
0 ...hters/main/test-data/path-tilde-named.zsh → ...hters/main/test-data/path-tilde-named.zsh
File renamed without changes.
View
0 ...ting/highlighters/main/test-data/path.zsh → ...ting/highlighters/main/test-data/path.zsh
File renamed without changes.
View
0 ...ighters/main/test-data/simple-command.zsh → ...ighters/main/test-data/simple-command.zsh
File renamed without changes.
View
0 ...ers/main/test-data/simple-redirection.zsh → ...ers/main/test-data/simple-redirection.zsh
File renamed without changes.
View
0 ...ghters/main/test-data/unknown-command.zsh → ...ghters/main/test-data/unknown-command.zsh
File renamed without changes.
View
0 ...ghlighting/highlighters/pattern/README.md → ...ghlighting/highlighters/pattern/README.md
File renamed without changes.
View
0 ...hlighters/pattern/pattern-highlighter.zsh → ...hlighters/pattern/pattern-highlighter.zsh
File renamed without changes.
View
0 ...-highlighting/highlighters/root/README.md → ...-highlighting/highlighters/root/README.md
File renamed without changes.
View
0 ...ng/highlighters/root/root-highlighter.zsh → ...ng/highlighters/root/root-highlighter.zsh
File renamed without changes.
View
0 ...h/zsh-syntax-highlighting/tests/README.md → .../.zsh-syntax-highlighting/tests/README.md
File renamed without changes.
View
0 ...-highlighting/tests/test-highlighting.zsh → ...-highlighting/tests/test-highlighting.zsh
File renamed without changes.
View
0 ...-syntax-highlighting/tests/test-perfs.zsh → ...-syntax-highlighting/tests/test-perfs.zsh
File renamed without changes.
View
0 ...-highlighting/zsh-syntax-highlighting.zsh → ...-highlighting/zsh-syntax-highlighting.zsh
File renamed without changes.
View
13 shell/.zsh/lib/appearance.zsh
@@ -1,13 +0,0 @@
-# ls colors
-autoload colors; colors;
-export LSCOLORS="Gxfxcxdxbxegedabagacad"
-
-setopt auto_cd
-setopt multios
-setopt cdablevarS
-
-# Apply theming defaults
-PS1="%n@%m:%~%# "
-
-# Setup the prompt with pretty colors
-setopt prompt_subst
View
49 shell/.zsh/lib/completion.zsh
@@ -1,49 +0,0 @@
-# fixme - the load process here seems a bit bizarre
-
-unsetopt menu_complete # do not autoselect the first completion entry
-unsetopt flowcontrol
-setopt auto_menu # show completion menu on succesive tab press
-setopt complete_in_word
-setopt always_to_end
-
-WORDCHARS=''
-
-zmodload -i zsh/complist
-
-zstyle ':completion:*' list-colors ''
-
-# should this be in keybindings?
-bindkey -M menuselect '^o' accept-and-infer-next-history
-
-zstyle ':completion:*:*:*:*:*' menu select
-zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
-zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
-
-# disable named-directories autocompletion
-zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
-cdpath=(.)
-
-[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
-[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
-#[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
-hosts=(
- "$_global_ssh_hosts[@]"
- "$_ssh_hosts[@]"
-# "$_etc_hosts[@]"
- "$HOST"
- localhost
-)
-zstyle ':completion:*:hosts' hosts $hosts
-
-# Don't complete uninteresting users
-zstyle ':completion:*:*:*:users' ignored-patterns \
- adm amanda apache avahi beaglidx bin cacti canna clamav daemon \
- dbus distcache dovecot fax ftp games gdm gkrellmd gopher \
- hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \
- mailman mailnull mldonkey mysql nagios \
- named netdump news nfsnobody nobody nscd ntp nut nx openvpn \
- operator pcap postfix postgres privoxy pulse pvm quagga radvd \
- rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs
-
-# ... unless we really want to.
-zstyle '*' single-ignored show
View
11 shell/.zsh/lib/correction.zsh
@@ -1,11 +0,0 @@
-setopt correct_all
-
-alias man='nocorrect man'
-alias mv='nocorrect mv'
-alias mysql='nocorrect mysql'
-alias mkdir='nocorrect mkdir'
-alias gist='nocorrect gist'
-alias heroku='nocorrect heroku'
-alias ebuild='nocorrect ebuild'
-alias hpodder='nocorrect hpodder'
-alias sudo='nocorrect sudo'
View
14 shell/.zsh/lib/directories.zsh
@@ -1,14 +0,0 @@
-# Changing/making/removing directory
-setopt auto_name_dirs
-setopt auto_pushd
-setopt pushd_ignore_dups
-
-alias 1='cd -'
-alias 2='cd +2'
-alias 3='cd +3'
-alias 4='cd +4'
-alias 5='cd +5'
-alias 6='cd +6'
-alias 7='cd +7'
-alias 8='cd +8'
-alias 9='cd +9'
View
10 shell/.zsh/lib/history.zsh
@@ -1,10 +0,0 @@
-## Command history configuration
-HISTFILE=$HOME/.zsh_history
-HISTSIZE=100000
-SAVEHIST=100000
-
-setopt append_history
-setopt hist_expire_dups_first
-setopt hist_ignore_space
-setopt inc_append_history
-setopt share_history # share command history data
View
40 shell/.zsh/lib/keys.zsh
@@ -1,40 +0,0 @@
-autoload up-line-or-beginning-search
-autoload down-line-or-beginning-search
-zle -N up-line-or-beginning-search
-zle -N down-line-or-beginning-search
-
-bindkey -v # set vim bindings
-# http://zshwiki.org/home/zle/bindkeys
-
-typeset -A key
-
-key[Home]=${terminfo[khome]}
-key[End]=${terminfo[kend]}
-key[Insert]=${terminfo[kich1]}
-key[Delete]=${terminfo[kdch1]}
-key[Up]=${terminfo[kcuu1]}
-key[Down]=${terminfo[kcud1]}
-key[Left]=${terminfo[kcub1]}
-key[Right]=${terminfo[kcuf1]}
-key[PageUp]=${terminfo[kpp]}
-key[PageDown]=${terminfo[knp]}
-key[Enter]=${terminfo[kent]}
-
-# setup key accordingly
-[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
-[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
-[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
-[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
-[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-beginning-search
-[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-beginning-search
-[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
-[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
-[[ -n "${key[Enter]}" ]] && bindkey "${key[Enter]}" enter
-
-# Finally, make sure the terminal is in application mode, when zle is
-# active. Only then are the values from $terminfo valid.
-zle-line-init () { echoti smkx }
-zle-line-finish () { echoti rmkx }
-
-zle -N zle-line-init
-zle -N zle-line-finish
View
28 shell/.zsh/lib/spectrum.zsh
@@ -1,28 +0,0 @@
-#!/bin/zsh
-# A script to make using 256 colors in zsh less painful.
-# P.C. Shyamshankar <sykora@lucentbeing.com>
-# Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/
-
-typeset -Ag FX FG BG
-
-FX=(
- reset "%{%}"
- bold "%{%}" no-bold "%{%}"
- italic "%{%}" no-italic "%{%}"
- underline "%{%}" no-underline "%{%}"
- blink "%{%}" no-blink "%{%}"
- reverse "%{%}" no-reverse "%{%}"
-)
-
-for color in {000..255}; do
- FG[$color]="%{[38;5;${color}m%}"
- BG[$color]="%{[48;5;${color}m%}"
-done
-
-# Show all 256 colors with color number
-function spectrum_ls() {
- for code in {000..255}; do
- print -P -- "$code: %F{$code}Test%f"
- done
-}
-

0 comments on commit dcafcdf

Please sign in to comment.
Something went wrong with that request. Please try again.