Devboot update: 23-10-04-20-17-31

This commit is contained in:
Matheus Albino
2023-10-04 20:17:31 -03:00
parent d5d9a751d3
commit 1cd9a07354
4 changed files with 29 additions and 12 deletions

View File

@@ -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

View File

@@ -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)"

View File

@@ -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 .