diff options
author | Phil Sainty <psainty@orcon.net.nz> | 2020-08-26 12:03:32 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-26 12:03:32 +0200 |
commit | fa3959f5cbd2c0c4642999bde987ba852373e0dd (patch) | |
tree | f9472c53d60a31eebe1e797663232f4f6653106c /lisp/term.el | |
parent | 6d84853de8d4644fcce571e099a5b3443b62bfd4 (diff) | |
download | emacs-fa3959f5cbd2c0c4642999bde987ba852373e0dd.tar.gz emacs-fa3959f5cbd2c0c4642999bde987ba852373e0dd.tar.bz2 emacs-fa3959f5cbd2c0c4642999bde987ba852373e0dd.zip |
term.el: Use correct exit status in suggested dir-tracking functions
* lisp/term.el: Make some of the examples better (bug#43055).
Diffstat (limited to 'lisp/term.el')
-rw-r--r-- | lisp/term.el | 6 |
1 files changed, 3 insertions, 3 deletions
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) |