From aebae4d098e6a17e3b475416f427802121337a42 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Fri, 8 Jan 2021 23:20:11 +0300 Subject: bashrc: modify fslcd function --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index f180d8e..e98fe7d 100644 --- a/.bashrc +++ b/.bashrc @@ -40,7 +40,9 @@ pacs() { FOSSILS_HOME=$HOME/Documents/Fossils fslcd() { - cd $(fossil all ls -c | fzf) + local fsl_checkout + fsl_checkout=$(fossil all ls -c | fzf +m) && + cd "$fsl_checkout" } # fossil init script -- cgit v1.2.3