alias val='valgrind --leak-check=full --show-reachable=yes --db-attach=yes '
alias s='screen -d -R -U && clear'
+alias p='feh --force-aliasing -d --full-screen --auto-zoom'
function nh () {
export HISTFILE=/dev/null
unalias cd
}
+function select-tz () {
+ # Select a value for TZ
+ TMP=$(mktemp /tmp/select-tz.XXXXXX)
+ selector -o "${TMP}" <(grep -v ^# /usr/share/zoneinfo/zone.tab | awk '{print $3}' | sort -u)
+ cat "${TMP}"
+ \rm -f "${TMP}"
+}
+
function ding () {
if [[ $1 ]] && which winshepherd.sh; then
play -q ~/local/sounds/deskbell.wav &
}
alias t='cd /tmp'
+alias a='cd /tmp/at'
function trash () {
TRASH=$(date +/tmp/trash-%Y-%b-%d-%Hh)
## A version of date that shows the time at home if TZ is set
function dt () {
- echo "Local: $(date)"
- if [[ ${TZ} ]]; then
- local TZ=$(cat /etc/timezone)
- echo "Home: $(date)"
- fi
+ echo "Local - $(date)"
+ unset TZ
+ echo "Home - $(date)"
}
######################################################################
# Contact <francois@fleuret.org> for comments & bug reports #
#########################################################################
+# This command makes a backup copy of a given directory into a backup
+# directory, tags it with the date and time, and uses rsync
+# intelligent features to avoid making superfluous copies of files
+# which are already backuped.
+
set -e
[[ ${FREEZE_DIR} ]] || FREEZE_DIR=${HOME}/.backups