all repos — dotfiles @ cca78be83a941a35c4abcfc8dfa7209a1c9aa515

personal dotfiles

add fossil init script link
la-ninpre leobrekalini@gmail.com
Fri, 04 Dec 2020 17:22:43 +0300
commit

cca78be83a941a35c4abcfc8dfa7209a1c9aa515

parent

3f53fecfe7319c034884417dfbfa0ade86685fcb

1 files changed, 23 insertions(+), 10 deletions(-)

jump to
M .bashrc.bashrc

@@ -37,13 +37,26 @@ sudo pacman -Syy $(pacman -Ssq | fzf -m --preview="pacman -Si {}" \

--preview-window=:hidden --bind=space:toggle-preview) } -finit() { - fossil init $1.fossil && \ - chmod 664 $1.fossil && \ - fossil open $1.fossil --workdir $1 && \ - fossil user password $USER $PASSWD && \ - fossil remote-url https://$USER:$PASSWD@aaoth.ml/$1 && \ - rsync --perms $1.fossil $USER@aaoth.ml:/var/www/htdocs/aaoth.ml >/dev/null && \ - chmod 644 $1.fossil && \ - fossil ui -} +FOSSILS_HOME=$HOME/Documents/Fossils + +# fossil init script +# modified version of one taken from +# https://www.fossil-scm.org/home/doc/trunk/www/server/openbsd/fastcgi.md + +source $HOME/.local/bin/finit + +# real one is there, but because it has some +#personal information, i'll not include it, but it almost identical to +#following: +# +#finit() { +# FINIT_REPO=$FOSSILS_HOME/$1.fossil +# fossil init $FINIT_REPO && \ +# chmod 664 $FINIT_REPO && \ +# fossil open $FINIT_REPO --workdir $HOME/Documents/$1 && \ +# fossil user -R $FINIT_REPO password $USER $PASSWD && \ +# fossil remote-url -R $FINIT_REPO https://$USER@domain.tld/$1 && \ +# rsync --perms $FINIT_REPO $USER@domain.tld:/var/www/fossils/ \ +# >/dev/null && \ +# chmod 644 $FINIT_REPO +#}