Move PATH settings to .profiles for GNOME shell
This commit is contained in:
commit
a041bb37be
8 changed files with 102 additions and 38 deletions
6
home/.profile
Normal file
6
home/.profile
Normal file
|
@ -0,0 +1,6 @@
|
|||
. "$HOME/.cargo/env"
|
||||
|
||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||
|
||||
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
6
home/.xprofile
Executable file
6
home/.xprofile
Executable file
|
@ -0,0 +1,6 @@
|
|||
. "$HOME/.cargo/env"
|
||||
|
||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||
|
||||
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
29
home/.zshrc
29
home/.zshrc
|
@ -24,9 +24,22 @@ export XKB_DEFAULT_OPTIONS="caps:escape"
|
|||
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
||||
export XDEB_PKGROOT=${HOME}/.config/xdeb
|
||||
|
||||
# Add cuda to path
|
||||
#export PATH="$PATH:/usr/local/cuda-12.8/bin"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
||||
#==============================================================================
|
||||
# OS-Specific Configuration
|
||||
#==============================================================================
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
export PATH="$PATH:/opt/homebrew/bin"
|
||||
alias ls="gls --classify --group-directories-first --color"
|
||||
alias gemini="(source ~/.gemini_project && gemini)"
|
||||
export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/"
|
||||
# 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
|
||||
|
||||
#==============================================================================
|
||||
# Aliases
|
||||
|
@ -40,7 +53,7 @@ alias clip2png="xclip -selection clipboard -target image/png -out"
|
|||
|
||||
load_env() {
|
||||
set -a
|
||||
. "$1"
|
||||
. "./$1"
|
||||
set +a
|
||||
}
|
||||
|
||||
|
@ -93,12 +106,18 @@ npm() {
|
|||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||
|
||||
# pyenv
|
||||
if [ $(which pyenv 2>&1 1>/dev/null) ]; then
|
||||
if command -v pyenv >/dev/null 2>&1; then
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init - zsh)"
|
||||
fi
|
||||
|
||||
# jenv
|
||||
if command -v jenv >/dev/null 2>&1; then
|
||||
export PATH="$HOME/.jenv/bin:$PATH"
|
||||
eval "$(jenv init -)"
|
||||
fi
|
||||
|
||||
# starship
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue