From ec3bedb921f4b2aebd70a007afc3efdfb6bfbc0d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 5 May 2008 18:20:42 +0100 Subject: [PATCH] import modules --- .zsh/zshrc/00_autoload | 17 ++++++++++++++--- .zsh/zshrc/30_aliases | 4 ++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.zsh/zshrc/00_autoload b/.zsh/zshrc/00_autoload index 6098311..7d5de0f 100644 --- a/.zsh/zshrc/00_autoload +++ b/.zsh/zshrc/00_autoload @@ -8,8 +8,19 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -# for p ($fpath) for fn ($p/**) autoload ${fn##*/} -autoload $^fpath/*(.xN:t) -autoload zargs +# autoload all executable files in $fpath +autoload -U $^fpath/*(.xN:t) + +# smart xargs replacement +autoload -U zargs + +# programmable moving, copying, and linking +autoload -U zmv + +# make color arrays available +autoload -U colors ; colors + +# use shell builtins for standard file operations +zmodload zsh/files # vim:ft=zsh diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index d54934a..2855a62 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -30,6 +30,10 @@ alias lssmall="ls -Srl *(.oL[1,10])" alias lsnew="ls -rl *(D.om[1,10])" alias lsold="ls -rtlh *(D.om[1,10])" +alias mmv='noglob zmv -W' +alias zcp=zmv +alias zln=zmv + alias cal='cal -3' alias ftp=lftp -- 2.39.2