zsh: fix docs repo not being detected properly

This commit is contained in:
PowerUser64 2022-01-06 21:41:22 -08:00
parent de11d2e97f
commit 0a74fbbed8

7
.zshrc
View file

@ -13,8 +13,8 @@
export EDITOR=vi
fi
export PATH="$PATH:${XDG_DATA_HOME:-$HOME/.local}/bin:$SHELL_CONFIG_DIR/bin"
export SHELL_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/shell"
export PATH="$PATH:${XDG_DATA_HOME:-$HOME/.local}/bin:$SHELL_CONFIG_DIR/bin"
export SYSTEMD_EDITOR="$EDITOR"
export LSCOLORS="Gxfxcxdxbxegedabagacad"
@ -22,6 +22,9 @@
export ZINIT_HOME_DIR="${XDG_DATA_HOME:-$HOME/.local}/share/zinit"
# Set documents directory (auto set to the repo the file ~/todo points to is in)
export DOCS_DIR="$(git -C "$(dirname "$(realpath ~/todo)")" rev-parse --show-toplevel | head -1)"
# Don't add extra space to the right side of the prompt
ZLE_RPROMPT_INDENT=0
@ -66,8 +69,6 @@
alias :q='exit' \
q='exit' \
alias sc=shellcheck
# rmdir is long
alias \
rmd='rmdir' \