summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc50
1 files changed, 27 insertions, 23 deletions
diff --git a/.zshrc b/.zshrc
index 38c4fd7..1a166e5 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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'