dotfiles

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

commit 1e4278b1f63a8b7bfce54da9c3cd3f60732a3fa5
parent 3fb2f63a55b3f415151d35c26967daf1889b40e1
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri,  8 May 2020 11:10:59 -0400

Add cd.sh to better handle Acme's win

Diffstat:
Aetc/shrc.d/cd.sh | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/etc/shrc.d/cd.sh b/etc/shrc.d/cd.sh @@ -0,0 +1,10 @@ +# 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" ] +then + cd() { + [ -z "$1" ] && set -- "$HOME" + command cd "$1" && awd $HOSTNAME + } +fi