From 1e6b1dfd6a79c5582d9705d1b03094672e20edf7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 26 Feb 2026 20:18:04 +0100 Subject: bash: Don’t pushd nothing on ‹ESC› MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index a9d8549..ff8c0ec 100644 --- a/.bashrc +++ b/.bashrc @@ -25,7 +25,8 @@ function jc { } function goto { - pushd "$(fzf --literal --filepath-word --walker=dir --walker-root="$HOME")" + local dst="$(fzf --literal --filepath-word --walker=dir --walker-root="$HOME")" \ + && pushd "$dst" } export BROWSER="firefox" -- cgit v1.2.3