From 64275b265aef935c1cf383bba2ebaa34f18054fc Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 27 Nov 2024 20:52:24 +0100 Subject: bash: Add the ‘goto’ function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 2e9687c..9f96f50 100644 --- a/.bashrc +++ b/.bashrc @@ -24,6 +24,10 @@ function jc { __dir_search "$1" "$XDG_CONFIG_HOME" -maxdepth 1 -type d } +function goto { + cd "$(fzf --literal --filepath-word --walker=dir --walker-root="$HOME")" +} + export BROWSER="firefox" export CC="gcc" export EDITOR="nvim" -- cgit v1.2.3