aboutsummaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 587a605..7566e80 100644
--- a/.bashrc
+++ b/.bashrc
@@ -42,6 +42,12 @@ export FZF_CTRL_T_COMMAND='$FZF_DEFAULT_COMMAND'
FOSSILS_HOME=$HOME/Documents/Fossils
export FOSSILS_HOME
+# quickly cd into fossil repo
+fslcd() {
+ _fsl_checkout=$(fossil all ls -c | fzf +m)
+ cd "$_fsl_checkout" || return
+}
+
# starship prompt
eval "$(starship init bash)"