diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-05-31 11:41:23 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-05-31 11:41:23 +0300 |
| commit | 81a615b8119ea39927d2ac99de932fd2971e53c8 (patch) | |
| tree | a970d4690d3d7624fb6777d6babbad1cfccfadec /.local | |
| parent | 8f809f3e24ca8eae68dd54468deeea692d27b02e (diff) | |
| download | dotfiles-81a615b8119ea39927d2ac99de932fd2971e53c8.tar.gz dotfiles-81a615b8119ea39927d2ac99de932fd2971e53c8.zip | |
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.
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/fslcd | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/.local/bin/fslcd b/.local/bin/fslcd deleted file mode 100755 index 4045ff9..0000000 --- a/.local/bin/fslcd +++ /dev/null @@ -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 "$@" |
