summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2013-01-06 16:32:50 +0100
committerStefan Ritter <xeno@thehappy.de>2013-01-06 16:32:50 +0100
commit0eb06ba89af67ade0e4f29e8ee3ce9d632aff53c (patch)
tree9b0302aa7dc7922d87acd23136508ce0ba00f9da /zshrc
parentbd2bb5d2835d8637e28b4d9839c9a0427a4647db (diff)
CleanupHEADmaster
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc90
1 files changed, 90 insertions, 0 deletions
diff --git a/zshrc b/zshrc
new file mode 100644
index 0000000..5be61ea
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,90 @@
+PROMPT="%F{red}%D{%k:%M} %F{white}%~%(1v.%F{green}%1v%f.)%F{red}%2v%f %% "
+
+zstyle ':completion:*' special-dirs true
+zstyle ':completion:*:*:kill:*' menu yes select
+zstyle ':completion:*:kill:*' force-list always
+
+zmodload -a zsh/complist complist
+
+if [ -e /usr/share/zsh/plugins/zsh-syntax-highlight/zsh-syntax-highlighting.zsh ]; then
+ source /usr/share/zsh/plugins/zsh-syntax-highlight/zsh-syntax-highlighting.zsh
+fi
+
+setopt nobeep
+setopt autocd
+setopt listpacked
+setopt listtypes
+setopt extended_glob
+setopt always_to_end
+setopt auto_param_slash
+setopt append_history
+setopt share_history
+setopt hist_ignore_dups
+setopt inc_append_history
+setopt extended_history
+
+unset correct
+
+export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/games:~/etc/bin/
+export EMAIL=xeno@thehappy.de
+export EDITOR="vim"
+
+HISTSIZE=1000
+SAVEHIST=1000
+HISTFILE=~/.zsh_history
+
+autoload -U compinit; compinit
+autoload -U zmv
+
+alias c="clear"
+alias ls="ls --color=auto"
+alias l="ls -lh"
+alias ll="ls -lah"
+alias mkdir="mkdir -p"
+alias pg="pgrep -fl"
+alias rmrf="rm -rf"
+
+alias g='git'
+alias gitserv="git daemon --verbose --reuseaddr --base-path=. --export-all ./.git"
+alias iso="genisoimage -l -J -R -o cd.iso"
+alias m="mtr --curses"
+alias s="screen -r -d"
+alias v="vim"
+alias vi="vim"
+alias httpd="python2 -m SimpleHTTPServer"
+
+alias agu="sudo apt-get update"
+alias agdu="sudo apt-get dist-upgrade"
+alias acs="apt-cache search"
+alias agi="sudo apt-get install"
+alias as="apt-cache show"
+alias purge="sudo apt-get --purge autoremove"
+
+alias -g C='| wc -l'
+alias -g G='| grep'
+alias -g H='| head'
+alias -g T='| tail'
+alias -g L='| less'
+
+alias -s jpg=geeqie
+
+bindkey -e
+bindkey '\e[7~' beginning-of-line
+bindkey '\e[8~' end-of-line
+
+shot() {
+ if [ "$1" != '' ]; then
+ scrot -c -d 3 $1
+ scp $1 xeno:public_html/
+ rm $1
+ else
+ scrot -c -d 3
+ fi
+}
+
+md() {
+ mkdir $1
+ cd $1
+}
+
+cd ~/