zsh: fix docs repo not being detected properly
This commit is contained in:
parent
de11d2e97f
commit
0a74fbbed8
1 changed files with 4 additions and 3 deletions
7
.zshrc
7
.zshrc
|
@ -13,8 +13,8 @@
|
||||||
export EDITOR=vi
|
export EDITOR=vi
|
||||||
fi
|
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 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 SYSTEMD_EDITOR="$EDITOR"
|
||||||
|
|
||||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
|
@ -22,6 +22,9 @@
|
||||||
|
|
||||||
export ZINIT_HOME_DIR="${XDG_DATA_HOME:-$HOME/.local}/share/zinit"
|
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
|
# Don't add extra space to the right side of the prompt
|
||||||
ZLE_RPROMPT_INDENT=0
|
ZLE_RPROMPT_INDENT=0
|
||||||
|
|
||||||
|
@ -66,8 +69,6 @@
|
||||||
alias :q='exit' \
|
alias :q='exit' \
|
||||||
q='exit' \
|
q='exit' \
|
||||||
|
|
||||||
alias sc=shellcheck
|
|
||||||
|
|
||||||
# rmdir is long
|
# rmdir is long
|
||||||
alias \
|
alias \
|
||||||
rmd='rmdir' \
|
rmd='rmdir' \
|
||||||
|
|
Loading…
Add table
Reference in a new issue