From e183c7f8bec0f6b96d4d7893fb8a6bc1121c5dda Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Mon, 11 Jan 2016 00:37:16 -0500 Subject: new configuration --- dot/bashrc | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'dot/bashrc') diff --git a/dot/bashrc b/dot/bashrc index 5232b86..9b257b6 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -1,5 +1,7 @@ # ~/.bashrc: executed by bash(1) for non-login shells. +export TZ='America/Detroit' + memoize_retval() { local var="$1" func="$2" @@ -41,7 +43,7 @@ memoize_retval() local result="$( stack path 2>&1 | while read k v do case "$k" in - bin-path:) printf 'PATH=%q\n' "$v" + bin-path:) printf 'PATH=%q:%q\n' "$PATH" "${v%:$PATH}" # add to _end_ of PATH ;; ghc-package-path:) printf 'GHC_PACKAGE_PATH=%q\n' "$v" echo 'export GHC_PACKAGE_PATH' @@ -223,10 +225,15 @@ if ! have srfi; then } fi -if have nvim; then - alias vim=nvim +# if have nvim; then +# alias vim=nvim +# fi + +if have emacsclient; then + alias vi='emacsclient -c' fi + ### array stack interface ### pusha () @@ -249,3 +256,10 @@ dorner () { DOOMWADDIR=$HOME/src/zdoom/release LD_LIBRARY_PATH=$HOME/src/zdoom/fmodapi42636linux/api/lib/ $HOME/src/zdoom/release/zdoom -file \$HOME/Dorners\ Last\ Stand Skins/DoRnerLastStand.wad } +avahi_hosts () +{ + avahi-browse -trap | ( IFS=';'; + while read _ _ _ _ _ _ x _; do + [ "$x" ] && echo $x; + done ) | sort -u +} -- cgit v1.2.3