summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-11-09 10:44:45 +0100
committerGravatar Tom Willemsen2012-11-09 10:44:45 +0100
commit41dca31756298ef9803172e6e982e554665258f9 (patch)
tree8e56f2395ccd9b48726df1b05099752f98ce109a /.zshrc
parent3104a8c298d964662bb09cc5e2a78d4bb1e104d0 (diff)
downloaddotfiles-41dca31756298ef9803172e6e982e554665258f9.tar.gz
dotfiles-41dca31756298ef9803172e6e982e554665258f9.zip
Move ZSH configs
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc95
1 files changed, 0 insertions, 95 deletions
diff --git a/.zshrc b/.zshrc
deleted file mode 100644
index 38c4fd7..0000000
--- a/.zshrc
+++ /dev/null
@@ -1,95 +0,0 @@
-# -*- Mode: shell-script; eval: (git-auto-commit-mode 1) -*-
-# Setup variables
-HISTFILE=~/.zsh/histfile
-HISTSIZE=1000
-SAVEHIST=1000
-
-setopt notify
-# Allow for functions in the prompt
-setopt PROMPT_SUBST
-setopt EXTENDED_GLOB
-
-zstyle :compinstall filename '/home/slash/.zshrc'
-
-autoload -Uz compinit
-compinit
-
-function shutdown()
-{
- dbus-send --system --print-reply \
- --dest="org.freedesktop.ConsoleKit" \
- /org/freedesktop/ConsoleKit/Manager \
- org.freedesktop.ConsoleKit.Manager.Stop
-}
-
-function reboot()
-{
- dbus-send --system --print-reply \
- --dest="org.freedesktop.ConsoleKit" \
- /org/freedesktop/ConsoleKit/Manager \
- org.freedesktop.ConsoleKit.Manager.Restart
-}
-
-# Initialize colors.
-autoload -U colors
-colors
-
-# Autoload zsh functions.
-fpath=(~/.zsh/functions $fpath)
-autoload -U ~/.zsh/functions/*(:t)
-
-# Enable auto-execution of functions
-typeset -ga preexec_functions
-typeset -ga precmd_functions
-typeset -ga chpwd_functions
-
-# Append git functions needed for prompt.
-preexec_functions+='preexec_update_vars'
-precmd_functions+='precmd_update_git_vars'
-precmd_functions+='precmd_update_updates'
-chpwd_functions+='chpwd_update_git_vars'
-
-# Set the prompt.
-PROMPT='$(prompt)'
-RPROMPT='$(rprompt)'
-
-# Set terminal name to current runnign application
-case $TERM in
- rxvt*)
- precmd () { print -Pn "\e]0;%~\a" }
- preexec () { print -Pn "\e]0;$1\a" }
- ;;
-esac
-
-# Set terminal keys
-bindkey "\e[1~" beginning-of-line
-bindkey "\e[4~" end-of-line
-bindkey "\e[5~" beginning-of-history
-bindkey "\e[6~" end-of-history
-bindkey "\e[3~" delete-char
-bindkey "\e[2~" quoted-insert
-bindkey "\e[5C" forward-word
-bindkey "\e0c" emacs-forward-word
-bindkey "\e[5D" backward-word
-bindkey "\e0d" emacs-backward-word
-bindkey "\e\e[C" forward-word
-bindkey "\e\e[D" backward-word
-## for rxvt
-bindkey "\e[8~" end-of-line
-bindkey "\e[7~" beginning-of-line
-## for non RH/Debian xterm, can't hurt for RH/Debian xterm
-bindkey "\e0H" beginning-of-line
-bindkey "\e0F" end-of-line
-## for freebsd console
-bindkey "\e[H" beginning-of-line
-bindkey "\e[F" end-of-line
-
-bindkey "^W" backward-delete-char
-
-# Show syntax highlighting when we're not running in emacs
-if [ -z $EMACS ]; then
- source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
-
- ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
- ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
-fi