Devboot update: 23-09-24-17-46-54

This commit is contained in:
Matheus Albino Brunhara
2023-09-24 17:46:54 -03:00
parent 0bc235b1ed
commit b1b2544f16
2 changed files with 36 additions and 10 deletions

View File

@@ -14,6 +14,12 @@ bind-key j select-pane -D
bind-key k select-pane -U bind-key k select-pane -U
bind-key l select-pane -R bind-key l select-pane -R
unbind C-h
unbind C-j
unbind C-k
unbind C-l
# Start windows and panes at 1, not 0 # Start windows and panes at 1, not 0
set -g base-index 1 set -g base-index 1
setw -g pane-base-index 1 setw -g pane-base-index 1

View File

@@ -5,11 +5,22 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
source ~/powerlevel10k/powerlevel10k.zsh-theme # 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. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
# asdf
. "$HOME/.asdf/asdf.sh"
fpath=(${ASDF_DIR}/completions $fpath)
autoload -Uz compinit && compinit
# bindkeys # bindkeys
bindkey "^[[1;5C" forward-word bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word bindkey "^[[1;5D" backward-word
@@ -22,19 +33,28 @@ bindkey "^[[3~" delete-char
autoload -U select-word-style autoload -U select-word-style
select-word-style bash select-word-style bash
# aliases
alias ll="exa --icons -la" alias ll="exa --icons -la"
alias ls="ll" alias ls="ll"
alias cat="bat --style=auto" alias cat="bat --style=auto"
alias docs="cd /mnt/e/Windows/Documents" alias docs="cd /mnt/e/Windows/Documents"
alias rld="source ${HOME}/.zshrc"
alias zshrc="lvim ${HOME}/.zshrc && rld"
# asdf # paths
. "$HOME/.asdf/asdf.sh" export PATH=${PATH}:${HOME}/.local/bin
export PATH=${PATH}:${HOME}/repos/personal-devboot/my-scripts/shell
# append completions to fpath # docker
fpath=(${ASDF_DIR}/completions $fpath) 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
# initialise completions with ZSH's compinit # end of file
fpath+=~/.zfunc eval "$(zoxide init zsh)"
autoload -Uz compinit && compinit