summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc100
1 files changed, 100 insertions, 0 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
new file mode 100644
index 0000000..88d7c34
--- /dev/null
+++ b/zsh/zshrc
@@ -0,0 +1,100 @@
+PUSER=%{$(echo -n '\e[0;37m')%}%n
+PATKI=%{$(echo -n '\e[0;37m')%}@
+PHOST=%{$(echo -n '\e[1;33m')%}%m
+PDOPP=%{$(echo -n '\e[1;37m')%}:
+PPATH=%{$(echo -n '\e[1;30m')%}%~
+PCOMM=%{$(echo -n '\e[0;37m')%}
+
+PROMPT="$PUSER$PATKI$PHOST$PDOPP$PPATH$PCOMM "
+
+zstyle ':completion:*' special-dirs true
+
+setopt nobeep
+setopt autocd
+setopt listpacked
+setopt listtypes
+
+export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/games
+export DEBEMAIL=xeno@thehappy.de
+export DEBFULLNAME="Stefan Ritter"
+export QUILT_PATCHES=debian/patches
+
+HISTSIZE=1000
+SAVEHIST=1000
+HISTFILE=~/.zsh_history
+
+autoload -U compinit; compinit
+autoload zmv
+
+alias c="clear && fortune"
+
+if [ "$HOST" = "galahad" ] || [ "$HOST" = "goliath" ]; then
+ alias ls="ls --color=auto"
+fi
+
+alias l="ls -la"
+alias mkdir="mkdir -p"
+alias rmrf="rm -rf"
+alias v="vim"
+
+mail() { mutt -F ~/.secgit/muttrc.$1 }
+
+alias a='acpi'
+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="mocp"
+alias mp="mplayer"
+alias n='newsbeuter'
+alias q='quilt'
+alias r="rdesktop-vrdp -k de -K localhost"
+alias s="screen -r -d"
+alias saft="sendfile"
+alias t="tmux a"
+alias tmux='tmux -u'
+alias vbm="VBoxManage"
+alias w="wicd-client -n"
+
+alias agu="sudo aptitude update"
+alias agdu="sudo aptitude dist-upgrade"
+alias acs="apt-cache search"
+alias agi="sudo aptitude install"
+alias purge="sudo apt-get --purge autoremove"
+
+alias svn-uscan='uscan --verbose --force-download --rename --repack --destdir=../tarballs'
+alias svn-bp='svn-buildpackage --svn-builder=pdebuild --svn-ignore-new'
+alias gendebpool='dpkg-scanpackages -m . /dev/null | gzip -9c > Packages.gz'
+alias git-bp='git-buildpackage --git-ignore-new --git-upstream-branch=master --git-debian-branch=debian --git-builder=pdebuild --debbuildopts "-i"'
+alias sfnv='uscan --verbose --no-symlink --rename'
+
+alias -g C='| wc -l'
+alias -g G='| grep'
+alias -g H='| head'
+alias -g T='| tail'
+alias -g L='| less'
+
+alias -s mp3=mplayer
+alias -s exe=wine
+alias -s pdf=apvlv
+
+shot() {
+ if [ "$1" != '' ]; then
+ scrot -c -d 3 $1
+ scp $1 xeno:www/pub/
+ rm $1
+ else
+ scrot -c -d 3
+ fi
+}
+
+md() {
+ mkdir $1
+ cd $1
+}
+
+
+case $TERM in
+ rxvt*)
+ precmd () {print -Pn "\e]0;%n@%m: %~\a"}
+ ;;
+esac