X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=bashrc;h=33e84b75df9eb4f180d1947db82dba9084af6f58;hp=6d1de66fae73d4a83fd8905e175bead18a1fdf2a;hb=ec86ffb8d47ff8576492ad423b6f59368e83ae0c;hpb=cabd80dd1cc5eb1263e18a395b05cc6d8279c073 diff --git a/bashrc b/bashrc index 6d1de66..33e84b7 100644 --- a/bashrc +++ b/bashrc @@ -120,7 +120,7 @@ alias find='ionice -c3 find' alias pd=pushd alias val='valgrind --leak-check=full --show-reachable=yes --db-attach=yes ' -alias s='screen -d -R -U && clear' +alias s='screen -d -R default -U && clear' alias p='feh --force-aliasing -d --full-screen --auto-zoom' alias gp=gnuplot @@ -430,6 +430,23 @@ function trash () { echo "Trashed $@" } +function trashlatex () { + TRASH=$(date +/tmp/trash-latex-${USER}-%Y-%b-%d-%Hh) + LINK=/tmp/trash + + mkdir -p ${TRASH} + + [[ -h ${LINK} ]] && \rm ${LINK} + + [[ ! -f ${LINK} ]] && ln -s ${TRASH} ${LINK} + + mv -v \ + *.log *.pdf *.aux *.nav *.pdfpc *.snm *.toc *.out \ + *.bbl *.blg \ + *.*.table *.*.gnuplot \ + ${TRASH} +} + ###################################################################### ## A version of pho which stores the image numbers in environment ## variables