From ce6be946d024aa55a15d576388d05f90be671cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 8 Oct 2022 12:40:19 +0200 Subject: Sat Oct 8 12:40:19 PM CEST 2022 --- .bin/dot-bootstrap | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to '.bin/dot-bootstrap') diff --git a/.bin/dot-bootstrap b/.bin/dot-bootstrap index 766eaf1..0da52d0 100755 --- a/.bin/dot-bootstrap +++ b/.bin/dot-bootstrap @@ -2,17 +2,27 @@ set -x -e -directories="git \ - downloads \ - .cache/dot \ - .cache/neomutt \ - .local/bin \ - .local/share/dot \ - .mail" - +# dotfiles setup remote=$(yadm remote | head -n 1) yadm branch --set-upstream-to="${remote}/trunk" trunk -for directory in ${directories}; do mkdir -p "${HOME}/${directory}"; done +# directory structure +for directory in "${HOME}/.cache/dot \ + ${HOME}/.cache/neomutt \ + ${HOME}/.local/bin \ + ${HOME}/.local/share/dot \ + ${HOME}/.mail + ${HOME}/downloads \ + ${HOME}/git \ + ${HOME}/mnt \ + ${HOME}/tmp \ + ${ZK_NOTEBOOK_DIR}"; do + mkdir -p "${directory}" +done + +# default venvs +venv_root_dir="${HOME}/.local/venv" +mkdir -p "${venv_root_dir}" -notmuch new +python -m venv "${venv_root_dir}/weechat" +"${venv_root_dir}/weechat/bin/pip" install websocket-client -- cgit v1.2.3