X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/d887c0dd92f6877215acc3d530da800d3538f277..ad251c8c9dbdc49a9118417654251ef18039125e:/.zsh/zshrc/90_cleanfiles diff --git a/.zsh/zshrc/90_cleanfiles b/.zsh/zshrc/90_cleanfiles index c5650cf..555461c 100644 --- a/.zsh/zshrc/90_cleanfiles +++ b/.zsh/zshrc/90_cleanfiles @@ -10,22 +10,20 @@ typeset -la rmfiles -_OLDPWD="$PWD" -builtin cd ~ - -rmfiles+=plugin131.trace -rmfiles+=minicom.log -rmfiles+=.cshrc -rmfiles+=java.log.* -rmfiles+=unison.log -rmfiles+=.bzr.log -rmfiles+=.fonts.cache-1 -rmfiles+=.gksu.lock -rmfiles+=.*.sw[mnop] -rmfiles+=.viminfo -rmfiles+=.bash_history -rmfiles+=core -rmfiles+=nohup.out +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 @@ -37,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