diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-03-09 18:46:07 +0100 |
---|---|---|
committer | Tobias Klauser <klto@zhaw.ch> | 2010-03-09 18:46:07 +0100 |
commit | 01409c293039b343fd083920b92d355fec0987ed (patch) | |
tree | 4f4239a97efe5261e99cd601e406d83ee7cbf4a8 | |
parent | 212734d392269d060e01326978e6ef25e202c17f (diff) |
Add zshrc directory
-rw-r--r-- | .zsh/zshrc/00_autoload | 16 | ||||
-rw-r--r-- | .zsh/zshrc/20_dirhash | 14 | ||||
-rw-r--r-- | .zsh/zshrc/30_aliases | 37 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.zsh/zshrc/00_autoload b/.zsh/zshrc/00_autoload new file mode 100644 index 0000000..1da6cde --- /dev/null +++ b/.zsh/zshrc/00_autoload @@ -0,0 +1,16 @@ +# zshrc/00_autoload +# +# Autoload functions +# +# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch> +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.distanz.ch/dotfiles/zsh.git + +# programmable rename +autoload -U zmv + +# make color arrays available +autoload -U colors ; colors 2>/dev/null + +# vim:ft=zsh diff --git a/.zsh/zshrc/20_dirhash b/.zsh/zshrc/20_dirhash new file mode 100644 index 0000000..1f800ff --- /dev/null +++ b/.zsh/zshrc/20_dirhash @@ -0,0 +1,14 @@ +# zshrc/20_dirhash +# +# hash some commonly used directories +# +# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch> +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.distanz.ch/dotfiles/zsh.git + +hash -d doc=/usr/share/doc +hash -d src=/usr/src +hash -d log=/var/log + +# vim:ft=zsh diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases new file mode 100644 index 0000000..caedfd1 --- /dev/null +++ b/.zsh/zshrc/30_aliases @@ -0,0 +1,37 @@ +# zshrc/30_aliases +# +# Define command aliases +# +# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch> +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.distanz.ch/dotfiles/zsh.git + +# TODO: look at the salias function in .zshrc.grml + +# command aliases +alias l='ls' +alias ll='ls -l' +alias la='ls -la' +alias cd..='cd ..' +alias ...='cd ../../' +alias cal='cal -m' +alias egrep='egrep --color=auto' +alias grep='grep --color=auto' +alias m='mount' +alias u='umount' + +# no spelling correction for these +alias cp='nocorrect cp' +alias ln='nocorrect ln' +alias mkdir='nocorrect mkdir' +alias mv='nocorrect mv' +alias rm='nocorrect rm' + +# get top 10 shell commands +alias top10='print -l ? ${(o)history%% *} | uniq -c | sort -nr | head -n 10' + +# bofh fortunes +alias bofh='fortune bofh-excuses' + +# vim:ft=zsh |