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 HISTSIZE=500000
HISTFILESIZE=100000 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 HISTFILE=~/.zsh_history
SAVEHIST=$HISTSIZE SAVEHIST=$HISTSIZE
HISTDUP=erase HISTDUP=erase
@ -614,6 +607,19 @@ _environment(){
if command_exists ranger; then if command_exists ranger; then
export RANGER_LOAD_DEFAULT_RC="FALSE" export RANGER_LOAD_DEFAULT_RC="FALSE"
fi 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(){ main(){
@ -622,10 +628,9 @@ main(){
_alias _alias
_coding_ _coding_
_environment _environment
error_log
} }
if check_root; then if check_root; then
main main
fi fi
error_log
# echo "$bat"