diff options
author | 2012-11-14 20:12:55 +0100 | |
---|---|---|
committer | 2012-11-14 20:12:55 +0100 | |
commit | 9c12ab571850a3b62791a51dd5d8fb49cfc91f92 (patch) | |
tree | cc9f45bdcb2ba31786a31037d1c42bddf17db514 /.zshrc | |
parent | 57e1063403ffd9519001e39ac92df9abeb42d879 (diff) | |
parent | 5abfdc6b5cc8360ca5a1880e6bc65670add10a78 (diff) | |
download | dotfiles-9c12ab571850a3b62791a51dd5d8fb49cfc91f92.tar.gz dotfiles-9c12ab571850a3b62791a51dd5d8fb49cfc91f92.zip |
Merge remote-tracking branch 'origin/master' into phoenix
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 50 |
1 files changed, 27 insertions, 23 deletions
@@ -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 '$HOME/.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=($HOME/.zsh/functions $fpath) +autoload -U $HOME/.zsh/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 $HOME/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue' ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue' |