Move ZSH configs

This commit is contained in:
Tom Willemsen 2012-11-09 10:44:45 +01:00
parent 3104a8c298
commit 41dca31756
18 changed files with 29 additions and 46 deletions

View file

@ -1,42 +1,46 @@
# -*- Mode: shell-script; eval: (git-auto-commit-mode 1) -*-
# -*- Mode: shell-script; -*-
# Setup variables
HISTFILE=~/.zsh/histfile
HISTFILE=$ZDOTDIR/histfile
HISTSIZE=1000
SAVEHIST=1000
LESSCMD="/usr/bin/less -FXRS"
export LESS_TERMCAP_mb=$'\e[1;37m'
export LESS_TERMCAP_md=$'\e[1;37m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[1;47;30m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[0;36m'
export PAGER=$LESSCMD
# Aliases
alias alpine="alpine -p ""{imap.gmail.com/ssl/user=tom.willemsen@archlinux.us}remote_pinerc"""
alias evolus-pencil="/usr/lib/evolus-pencil-svn/evolus-pencil.sh"
alias grep="grep --color=always"
alias less=$LESSCMD
alias ls="ls -F --color=always"
alias mysql="mysql --pager"
alias reboot="systemctl reboot"
alias poweroff="systemctl poweroff"
setopt notify
# Allow for functions in the prompt
setopt PROMPT_SUBST
setopt EXTENDED_GLOB
zstyle :compinstall filename '/home/slash/.zshrc'
zstyle :compinstall filename '$ZDOTDIR/.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)
fpath=($ZDOTDIR/functions $fpath)
autoload -U $ZDOTDIR/functions/*(:t)
# Enable auto-execution of functions
typeset -ga preexec_functions
@ -53,7 +57,7 @@ chpwd_functions+='chpwd_update_git_vars'
PROMPT='$(prompt)'
RPROMPT='$(rprompt)'
# Set terminal name to current runnign application
# Set terminal name to current running application
case $TERM in
rxvt*)
precmd () { print -Pn "\e]0;%~\a" }
@ -88,7 +92,7 @@ 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
source $ZDOTDIR/syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'

4
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule ".zsh/syntax-highlighting"]
path = .zsh/syntax-highlighting
[submodule ".config/zsh/syntax-highlighting"]
path = .config/zsh/syntax-highlighting
url = git://github.com/zsh-users/zsh-syntax-highlighting

21
.zshenv
View file

@ -1,21 +0,0 @@
LESSCMD="less -FXRS"
export LESS_TERMCAP_mb=$'\e[1;37m'
export LESS_TERMCAP_md=$'\e[1;37m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[1;47;30m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[0;36m'
export PAGER=$LESSCMD
# Aliases
alias alpine="alpine -p ""{imap.gmail.com/ssl/user=tom.willemsen@archlinux.us}remote_pinerc"""
alias evolus-pencil="/usr/lib/evolus-pencil-svn/evolus-pencil.sh"
alias grep="grep --color=always"
alias less=$LESSCMD
alias ls="ls -F --color=always"
alias mysql="mysql --pager"
alias reboot="systemctl reboot"
alias poweroff="systemctl poweroff"