From: martin f. krafft Date: Tue, 17 Oct 2017 13:16:26 +0000 (+0200) Subject: remove cleanfiles legacy X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/b67e44a894e7b8f8cabd4e1ce7f9bf03498e77e9?ds=sidebyside remove cleanfiles legacy --- diff --git a/.zsh/zshrc/90_cleanfiles.disabled b/.zsh/zshrc/90_cleanfiles.disabled deleted file mode 100644 index faf5be7..0000000 --- a/.zsh/zshrc/90_cleanfiles.disabled +++ /dev/null @@ -1,47 +0,0 @@ -# zlogout/90_cleanfiles -# -# remove files we never want to keep around -# -# Copyright © 1994–2017 martin f. krafft -# Released under the terms of the Artistic Licence 2.0 -# -# Source repository: http://git.madduck.net/v/etc/zsh.git -# - -typeset -la rmfiles - -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+=~/jpilot.log -rmfiles+=~/srtp.log -rmfiles+=~/hs_err_pid[0-9]*.log - -typeset -la _rmfiles - -for f in ${~rmfiles}; do - [[ -f $f ]] || continue - _rmfiles+="$f" -done - - -if (( $#_rmfiles )); then - _rmfiles=(${_rmfiles#$HOME/}) - info "Removing files: ${_rmfiles[@]}..." - rm -f ${_rmfiles[@]} -fi - -unset _rmfiles - -# vim:ft=zsh