summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc96
1 files changed, 96 insertions, 0 deletions
diff --git a/zshrc b/zshrc
new file mode 100644
index 0000000..ed62815
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,96 @@
+PTIME=%{$(echo -n '\e[0;31m')%}%T
+PUSER=%{$(echo -n '\e[0;37m')%}%n
+PATKI=%{$(echo -n '\e[1;37m')%}@
+PHOST=%{$(echo -n '\e[1;32m')%}%m
+PDOPP=%{$(echo -n '\e[1;37m')%}:
+PPATH=%{$(echo -n '\e[1;32m')%}%~
+PCOMM=%{$(echo -n '\e[0;37m')%}
+PROMPT="$PTIME $PUSER$PATKI$PHOST$PDOPP$PPATH$PCOMM "
+
+export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/games
+
+# Set terminal title dynamic
+case $TERM in
+ rxvt*)
+ precmd () {print -Pn "\e]0;%n@%m: %~\a"}
+ ;;
+esac
+
+HISTSIZE=1000
+SAVEHIST=1000
+HISTFILE=~/.zsh_history
+PATH=~/bin:$PATH
+
+autoload -U compinit; compinit
+autoload zmv
+
+alias ls="ls --color=auto"
+alias l="ls -laX"
+alias cp="cp -v"
+alias mkdir="mkdir -p"
+alias grep="grep --color=auto"
+alias g="gvim"
+alias v="vim"
+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 purge="sudo apt-get --purge autoremove"
+alias c="clear && fortune"
+alias s="screen -r -d"
+alias df="df -m"
+alias iso="genisoimage -l -J -R -o cd.iso"
+alias a="acpi -t"
+alias w="wicd-client -n"
+alias gitlog="git log --pretty=oneline --abbrev-commit"
+alias x="xine"
+alias x1="xrandr --output VGA --off"
+alias x2="xrandr --output VGA --auto && xrandr --output VGA --right-of LVDS"
+alias m="mocp"
+alias mp="mplayer"
+alias p="ping"
+alias rmrf="rm -rf"
+alias vbm="VBoxManage"
+alias r='rdesktop-vrdp -k de -K localhost'
+alias gitserv='git daemon --verbose --reuseaddr --base-path=. --export-all ./.git'
+
+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
+
+setopt nobeep
+setopt autocd
+setopt listpacked
+setopt listtypes
+
+shot() {
+ if [ "$1" != '' ]; then
+ scrot -c -d 3 $1
+ scp $1 xeno:www/pub/
+ rm $1
+ else
+ scrot -c -d 3
+ fi
+}
+
+gpdf() {
+ xpdf =(gpg --decrypt $1)
+}
+
+md() {
+ mkdir $1
+ cd $1
+}
+
+ausrede() {
+ if [ $RANDOM -lt 16384 ]; then
+ fortune bofh-excuses
+ else
+ nc towel.blinkenlights.nl 666
+ fi
+}