aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-01-08 23:20:11 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-01-08 23:20:11 +0300
commitaebae4d098e6a17e3b475416f427802121337a42 (patch)
tree6b5f667dba179963f9271459887287f40ffdf03d
parentf4f4a145c70a144705bc9800c0fb37e7db9bf4ed (diff)
downloaddotfiles-aebae4d098e6a17e3b475416f427802121337a42.tar.gz
dotfiles-aebae4d098e6a17e3b475416f427802121337a42.zip
bashrc: modify fslcd function
-rw-r--r--.bashrc4
1 files changed, 3 insertions, 1 deletions
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