X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=bashrc;h=dd9bc904f614bb18f383c6e305a44eec443b4266;hp=fff96ac3cbaf2f3d9a28b64a1c476e1a8a4cf489;hb=0acec4f7f3292ea19e685c70ce9b300f0fe9c9c2;hpb=006eaa8bf4b02876c790e0a4b1d8d7871c91d801 diff --git a/bashrc b/bashrc index fff96ac..dd9bc90 100644 --- a/bashrc +++ b/bashrc @@ -117,12 +117,21 @@ alias pd=pushd 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 & @@ -326,6 +335,7 @@ function cdt () { } alias t='cd /tmp' +alias a='cd /tmp/at' function trash () { TRASH=$(date +/tmp/trash-%Y-%b-%d-%Hh) @@ -367,11 +377,9 @@ function pho () { ## 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)" } ######################################################################