commit 30ae8d9c31a710ad94a5b33eb4231a878ce3b334
parent 70a30901e2995a1a76b16e8c248bf78147540efc
Author: Ed van Bruggen <edvb54@gmail.com>
Date: Wed, 22 Feb 2017 15:54:36 -0800
bin: Add z.sh running sett after cd-ing
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/z.sh b/bin/z.sh
@@ -121,7 +121,7 @@ _z() {
# if we hit enter on a completion just go there
case "$last" in
# completions will always start with /
- /*) [ -z "$list" -a -d "$last" ] && cd "$last" && return;;
+ /*) [ -z "$list" -a -d "$last" ] && cd "$last" && sett && return;;
esac
# no file yet
@@ -200,6 +200,7 @@ _z() {
')"
[ $? -gt 0 ] && return
[ "$cd" ] && cd "$cd"
+ sett
fi
}