# -*-Shell-script-*-
+# PS4='+ $(date "+%s.%N")\011 '
+# set -x
+
#########################################################################
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the version 3 of the GNU General Public License #
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
then
if [[ "$1" == "-v" ]] || [[ "$1" == "--view" ]]
then
- xpdf "${FILEBASE}.pdf"
+ # xpdf "${FILEBASE}.pdf"
+ zathura "${FILEBASE}.pdf"
elif [[ "$1" == "-p" ]] || [[ "$1" == "--print" ]]
then
lpr "${FILEBASE}.pdf"
fi
echo "Please click on the window to capture."
- xwd | convert - ${name}
+ xwd | convert xwd:- ${name}
\ls -l ${name}
}
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
}
######################################################################
-## ifup / ifdown with sudo and memorization of the network
-
-## When invoked without an argument netup uses the same argument as
-## the previous time
-
-## When invoked without an argument netdown removes the last interface
-## which was netuped
+## ifup / ifdown with sudo
[ ${NETUP_HISTORY} ] || NETUP_HISTORY="${HOME}/.netup_history"
# multiple shells are open
history -a
# load the saved history
- history -n
+ # history -n
# and the local histories system defined above
keep_local_history
# and the history cue
[[ ${TZ} ]] && echo "${VT_BLUE_FG}Time zone is ${TZ}.${VT_RESET}"
######################################################################
+
+source /usr/share/bash-completion/bash_completion
+
+######################################################################
+
+# added by Miniconda3 installer
+export PATH="/home/fleuret/conda/bin:$PATH"