From: martin f. krafft Date: Wed, 14 May 2008 20:48:01 +0000 (+0100) Subject: do not chdir for cleanfiles X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/b100e099f62f7ef233b2b8c74b060d0d586f4b97?ds=sidebyside;pf=etc do not chdir for cleanfiles --- diff --git a/.zsh/zshrc/90_cleanfiles b/.zsh/zshrc/90_cleanfiles index b558145..555461c 100644 --- a/.zsh/zshrc/90_cleanfiles +++ b/.zsh/zshrc/90_cleanfiles @@ -10,23 +10,20 @@ typeset -la rmfiles -_OLDPWD="$PWD" -builtin cd ~ - -rmfiles+=plugin131.trace -rmfiles+=minicom.log -rmfiles+=.cshrc -rmfiles+=java.log.*(N) -rmfiles+=unison.log -rmfiles+=.bzr.log -rmfiles+=.fonts.cache-1 -rmfiles+=.gksu.lock -rmfiles+=.*.sw[mnop](N) -rmfiles+=.viminfo -rmfiles+=.bash_history -rmfiles+=core -rmfiles+=nohup.out -rmfiles+=typescript +rmfiles+=~/plugin131.trace +rmfiles+=~/minicom.log +rmfiles+=~/.cshrc +rmfiles+=~/java.log.*(N) +rmfiles+=~/unison.log +rmfiles+=~/.bzr.log +rmfiles+=~/.fonts.cache-1 +rmfiles+=~/.gksu.lock +rmfiles+=~/.*.sw[mnop](N) +rmfiles+=~/.viminfo +rmfiles+=~/.bash_history +rmfiles+=~/core +rmfiles+=~/nohup.out +rmfiles+=~/typescript typeset -la _rmfiles @@ -38,13 +35,10 @@ done unset rmfiles if [[ -n $_rmfiles ]]; then - info "Removing files: ${_rmfiles[@]}..." + info "Removing files: ${(j: :)${_rmfiles#$HOME/}}..." rm -f ${_rmfiles[@]} fi unset _rmfiles -builtin cd $_OLDPWD -unset _OLDPWD - # vim:ft=zsh