From 1cd9a0735426afe401abed701569e1c770d7ceea Mon Sep 17 00:00:00 2001 From: Matheus Albino Date: Wed, 4 Oct 2023 20:17:31 -0300 Subject: [PATCH] Devboot update: 23-10-04-20-17-31 --- dot-conf/.tmuxifier/layouts/layouts/.gitkeep | 0 .../telegram-messages-manager.session.sh | 12 +++++++++ dot-conf/.zshrc | 26 +++++++++++-------- runBackup.sh | 3 ++- 4 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 dot-conf/.tmuxifier/layouts/layouts/.gitkeep create mode 100644 dot-conf/.tmuxifier/layouts/layouts/telegram-messages-manager.session.sh diff --git a/dot-conf/.tmuxifier/layouts/layouts/.gitkeep b/dot-conf/.tmuxifier/layouts/layouts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/dot-conf/.tmuxifier/layouts/layouts/telegram-messages-manager.session.sh b/dot-conf/.tmuxifier/layouts/layouts/telegram-messages-manager.session.sh new file mode 100644 index 0000000..84e1579 --- /dev/null +++ b/dot-conf/.tmuxifier/layouts/layouts/telegram-messages-manager.session.sh @@ -0,0 +1,12 @@ +session_root "~/repos/telegram-messages-manager" + +if initialize_session "telegram-messages-manager"; then + new_window "lunarvim" + split_v 20 + run_cmd "./runDev.sh" + select_pane 0 + run_cmd "poetry shell" + run_cmd "lvim ." +fi + +finalize_and_go_to_session diff --git a/dot-conf/.zshrc b/dot-conf/.zshrc index 1f4c392..5b75938 100644 --- a/dot-conf/.zshrc +++ b/dot-conf/.zshrc @@ -5,7 +5,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi -# End of lines added by compinstall source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. @@ -16,6 +15,8 @@ HISTSIZE=10000 SAVEHIST=10000 setopt appendhistory +export EDITOR=lvim + # asdf . "$HOME/.asdf/asdf.sh" fpath=(${ASDF_DIR}/completions $fpath) @@ -40,22 +41,25 @@ alias cat="bat --style=auto" alias docs="cd /mnt/e/Windows/Documents" alias rld="source ${HOME}/.zshrc" alias zshrc="lvim ${HOME}/.zshrc && rld" +alias tm="tmux" +alias tmf="tmuxifier" # paths export PATH=${PATH}:${HOME}/.local/bin export PATH=${PATH}:${HOME}/repos/personal-devboot/my-scripts/shell +export PATH="$HOME/.tmuxifier/bin:$PATH" # docker # https://gbbigardi.medium.com/wsl-2-arch-docker-e-um-pouco-mais-do-meu-ambiente-de-desenvolvimento-42adc48368d4 -DOCKER_DISTRO="Arch" -DOCKER_DIR=/mnt/wsl/shared-docker -DOCKER_SOCK="$DOCKER_DIR/docker.sock" -export DOCKER_HOST="unix://$DOCKER_SOCK" -if [ ! -S "$DOCKER_SOCK" ]; then - mkdir -pm o=,ug=rwx "$DOCKER_DIR" - chgrp docker "$DOCKER_DIR" - /mnt/c/Windows/System32/wsl.exe -d $DOCKER_DISTRO sh -c "nohup sudo -b dockerd < /dev/null > $DOCKER_DIR/dockerd.log 2>&1" -fi +# DOCKER_DISTRO="Arch" +# DOCKER_DIR=/mnt/wsl/shared-docker +# DOCKER_SOCK="$DOCKER_DIR/docker.sock" +# export DOCKER_HOST="unix://$DOCKER_SOCK" +# if [ ! -S "$DOCKER_SOCK" ]; then +# mkdir -pm o=,ug=rwx "$DOCKER_DIR" +# chgrp docker "$DOCKER_DIR" +# /mnt/c/Windows/System32/wsl.exe -d $DOCKER_DISTRO sh -c "nohup sudo -b dockerd < /dev/null > $DOCKER_DIR/dockerd.log 2>&1" +# fi -# end of file +eval "$(tmuxifier init -)" eval "$(zoxide init zsh)" diff --git a/runBackup.sh b/runBackup.sh index 3d29525..86a76ba 100755 --- a/runBackup.sh +++ b/runBackup.sh @@ -1,9 +1,10 @@ mkdir --parents dot-conf -mkdir --parents dot-conf/.config/lvim +mkdir --parents dot-conf/.config/lvim dot-conf/.tmuxifier/layouts cp ${HOME}/.zshrc ./dot-conf/ cp ${HOME}/.tmux.conf ./dot-conf/ cp --recursive ${HOME}/.config/lvim/ ./dot-conf/.config +cp --recursive ${HOME}/.tmuxifier/layouts/ ./dot-conf/.tmuxifier/layouts/ fulltime=$(date +%y-%m-%d-%H-%M-%S) git add .