some path changes

This commit is contained in:
pika 2024-10-28 14:20:29 +01:00
parent 37092c84d9
commit a0b0a6e617

23
.zshrc
View file

@ -108,13 +108,6 @@ select-word-style shell
HISTSIZE=500000
HISTFILESIZE=100000
if [[ -d "$HOME/.local/bin" ]]; then
export PATH="$HOME/.local/bin:$PATH"
if [ -e "$HOME/.local/bin/lazydocker" ]; then
alias ld="$HOME/.local/bin/lazydocker"
fi
fi
HISTFILE=~/.zsh_history
SAVEHIST=$HISTSIZE
HISTDUP=erase
@ -614,6 +607,19 @@ _environment(){
if command_exists ranger; then
export RANGER_LOAD_DEFAULT_RC="FALSE"
fi
# ─< paths >──────────────────────────────────────────────────────────────────────────────
if [ -d "$HOME/.local/bin" ]; then
export PATH="$HOME/.local/bin:$PATH"
if [ -e "$HOME/.local/bin/lazydocker" ]; then
alias ld="$HOME/.local/bin/lazydocker"
fi
fi
if [ -d "$HOME/go/" ]; then
export PATH="$HOME/go:$PATH"
fi
}
main(){
@ -622,10 +628,9 @@ main(){
_alias
_coding_
_environment
error_log
}
if check_root; then
main
fi
error_log
# echo "$bat"