diff --git a/.zshrc b/.zshrc index c68285a..f5f0086 100644 --- a/.zshrc +++ b/.zshrc @@ -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"