From 6baa13f6f8ab74fc935baf11865879bb26eddfd6 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Wed, 27 Nov 2024 09:48:19 +0200 Subject: fix(bash): Remove previous directory on failed pop --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 9eefc15..1b72e84 100644 --- a/.bashrc +++ b/.bashrc @@ -219,7 +219,7 @@ } popd() { ___dirchanged="y" - builtin popd >/dev/null 2>&1 || true + builtin popd >/dev/null 2>&1 || builtin popd +1 } alias cd="pushd" # change directory alias bd="popd" # back directory -- cgit v1.2.3