From: Phil Sainty Date: Wed, 26 Aug 2020 10:03:32 +0000 (+0200) Subject: term.el: Use correct exit status in suggested dir-tracking functions X-Git-Tag: emacs-28.0.90~6389 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa3959f5cbd2c0c4642999bde987ba852373e0dd;p=emacs.git term.el: Use correct exit status in suggested dir-tracking functions * lisp/term.el: Make some of the examples better (bug#43055). --- diff --git a/lisp/term.el b/lisp/term.el index 3c65b63911b..e77c2c1331b 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -241,9 +241,9 @@ ;; printf '\033AnSiTu %s\n' "$USER" ;; printf '\033AnSiTc %s\n' "$PWD" ;; -;; cd() { command cd "$@"; printf '\033AnSiTc %s\n' "$PWD"; } -;; pushd() { command pushd "$@"; printf '\033AnSiTc %s\n' "$PWD"; } -;; popd() { command popd "$@"; printf '\033AnSiTc %s\n' "$PWD"; } +;; cd() { command cd "$@" && printf '\033AnSiTc %s\n' "$PWD"; } +;; pushd() { command pushd "$@" && printf '\033AnSiTc %s\n' "$PWD"; } +;; popd() { command popd "$@" && printf '\033AnSiTc %s\n' "$PWD"; } ;; ;; # Use custom dircolors in term buffers. ;; # eval $(dircolors $HOME/.emacs_dircolors)