]> git.draconx.ca Git - zshconf.git/blobdiff - zshrc
Add common aliases to global zshrc.
[zshconf.git] / zshrc
diff --git a/zshrc b/zshrc
index a918905a10698fdb1bd02addfa48e5eb9bc0772a..7f5a3b3984e99773f3a26d417ea68d6bccf8632f 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -17,7 +17,7 @@ bindkey -e
 
 case $TERM in
 rxvt*)
-       if [[ $TERM == rxvt-unicode ]]; then
+       if [[ $TERM =~ '^rxvt-unicode' ]]; then
                [[ -z $COLORTERM ]] && export COLORTERM='rxvt-xpm'
                [[ -z $COLORFGBG ]] && export COLORFGBG='15;default;0'
        fi
@@ -26,12 +26,13 @@ rxvt*)
        bindkey '\e[8~' end-of-line
        bindkey '\e[7~' beginning-of-line
 ;;
-screen*|linux)
+screen*|linux|cygwin)
        bindkey '\e[3~' delete-char
        bindkey '\e[4~' end-of-line
        bindkey '\e[1~' beginning-of-line
+       bindkey '\eOM'  accept-line
 ;;
-xterm)
+xterm*)
        bindkey '\e[3~' delete-char
        bindkey '\e[F'  end-of-line
        bindkey '\e[H'  beginning-of-line
@@ -106,3 +107,8 @@ alias grep='grep --color=auto'
 alias mv='mv -i'
 alias rm='rm -i'
 alias cp='cp -i'
+
+# Common aliases
+alias vv='$EDITOR ~/.zshrc && source ~/.zshrc'
+alias ll='ls -l'
+alias lr='ls -rtl'