dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 244b3c925cfadb7823030a39df84f76b1f4f4b73
parent 8b9a84ef1213d07fad42cf1230d433acbe679524
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 22 May 2020 10:04:30 -0400

cd.sh: Smarter environment detection

Diffstat:
Metc/shrc.d/cd.sh | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/etc/shrc.d/cd.sh b/etc/shrc.d/cd.sh @@ -1,10 +1,8 @@ -# The issue here is that Acme requires an additional call coupled -# with cd in order to update the window tag. We can use the value -# of $EDITOR to see if we're in an Acme environment. -if [ "$EDITOR" = "E" ] +if [ "$termprog" = "9term" -o "$termprog" = "win" ] then cd() { [ -z "$1" ] && set -- "$HOME" command cd "$1" && awd $HOSTNAME } + awd $HOSTNAME fi