move fslcd back to bashrc when it is separate script it's not working, because cd works only when script is running, but when it exits, working directory stays the same. maybe there's a way to do it differently, but for now it will remain just a function inside bashrc.
la-ninpre leobrekalini@gmail.com
Mon, 31 May 2021 11:41:23 +0300
2 files changed,
6 insertions(+),
10 deletions(-)
D
.local/bin/fslcd
@@ -1,10 +0,0 @@
-#!/bin/sh - -# script to quickly get to any fossil repo using fzf - -main() { - _fsl_checkout=$(fossil all ls -c | fzf +m) && - cd "$_fsl_checkout" || return -} - -main "$@"