Additional config changes for compatibilty
This commit is contained in:
parent
a1a000db62
commit
10af352f41
1 changed files with 16 additions and 10 deletions
26
home/.zshrc
26
home/.zshrc
|
@ -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
|
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||||
|
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
if [ $(which pyenv 2>&1 1>/dev/null) ]; then
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
eval "$(pyenv init - zsh)"
|
[[ -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
|
fi
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
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 '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue