Additional config changes for compatibilty

This commit is contained in:
Alex Selimov 2025-09-09 08:34:13 -04:00
parent a1a000db62
commit 10af352f41
No known key found for this signature in database
GPG key ID: BC03C17FF5CFFFD2

View file

@ -49,16 +49,10 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
if [ $(which pyenv 2>&1 1>/dev/null) ]; then
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"
# Settings that need to swap between Mac and Linux
if [ "$(uname)" = "Darwin" ]; then
export PATH="$PATH:/opt/homebrew/bin"
alias ls="gls --classify --group-directories-first --color"
else
alias ls="ls --classify --group-directories-first --color"
fi
eval "$(starship init zsh)"
@ -73,3 +67,15 @@ source "$HOME/.config/zsh/zsh-history-substring-search/zsh-history-substring-sea
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# Settings that need to swap between Mac and Linux
if [ "$(uname)" = "Darwin" ]; then
export PATH="$PATH:/opt/homebrew/bin"
alias ls="gls --classify --group-directories-first --color"
# I only start tmux by default on Mac because of dwm+swallow patch
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
tmux attach -t dev || tmux new -s dev
fi
else
alias ls="ls --classify --group-directories-first --color"
fi