[shell] reorganised my .profile

This commit is contained in:
Lucien Cartier-Tilet 2024-06-08 15:12:48 +02:00
parent 1280086985
commit 18d79b2efe
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

152
.profile Normal file → Executable file
View File

@ -1,87 +1,96 @@
#!/bin/sh #!/bin/sh
# shellcheck source=/dev/null
. "$HOME"/.profile.private . "$HOME"/.profile.private
export XDG_CACHE_HOME="$HOME/.cache" export EMAIL=lucien@phundrak.com
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export EMAIL="lucien@phundrak.com"
export NAME="Lucien Cartier-Tilet" export NAME="Lucien Cartier-Tilet"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
export LSP_USE_PLISTS=true export XDG_CACHE_HOME="$HOME"/.cache
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_DATA_HOME="$HOME"/.local/share
export XDG_STATE_HOME="$HOME"/.local/state
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":/usr/local/lib
export LSP_USE_PLISTS=true
export DIFFPROG=ediff
export SUDO_ASKPASS="$HOME"/.local/bin/askpass
export MANPAGER=less
export HISTFILE="${XDG_STATE_HOME}/bash/history" export DART_SDK=/opt/dart-sdk/bin
export _Z_DATA="$XDG_DATA_HOME"/z export ANDROID_HOME="$HOME"/Android/Sdk
export WINEPREFIX="$XDG_DATA_HOME"/wine export CHROME_EXECUTABLE=/usr/bin/chromium
export TEXMFVAR="$XDG_CACHE_HOME"/texlive/texmf-var
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup LESS_TERMCAP_mb=$(printf '\e[1;32m')
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle export LESS_TERMCAP_mb
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle LESS_TERMCAP_md=$(printf '\e[1;32m')
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle export LESS_TERMCAP_md
export PYLINTHOME="${XDG_CACHE_HOME}"/pylint LESS_TERMCAP_me=$(printf '\e[0m')
export PYENV_ROOT="$XDG_DATA_HOME"/pyenv export LESS_TERMCAP_me
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass LESS_TERMCAP_se=$(printf '\e[0m')
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel export LESS_TERMCAP_se
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java" LESS_TERMCAP_so=$(printf '\e[01;33m')
export NVM_DIR="$XDG_DATA_HOME"/nvm export LESS_TERMCAP_so
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv LESS_TERMCAP_ue=$(printf '\e[0m')
export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv export LESS_TERMCAP_ue
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages LESS_TERMCAP_us=$(printf '\e[1;4;31m')
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc export LESS_TERMCAP_us
export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo export BROWSER=firefox
export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
export ICEAUTHORITY="$XDG_CACHE_HOME"/ICEauthority
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export GOPATH="$XDG_DATA_HOME"/go
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export GEM_HOME="${XDG_DATA_HOME}"/gem
export GEM_SPEC_CACHE="${XDG_CACHE_HOME}"/gem
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export EDITOR="emacsclient -c" export EDITOR="emacsclient -c"
export VISUAL="emacsclient -c" export VISUAL="emacsclient -c"
export GTK_THEME="Nordic" export GTK_THEME=Nordic
export GTK_ICON_THEME="Flat-Remix-Dark" export GTK_ICON_THEME="Flat-Remix-Dark"
export DART_SDK=/opt/dart-sdk/bin export __GL_SHADER_DISK_CACHE_PATH="$XDG_CACHE_HOME"/nv
export ANDROID_HOME="$HOME/Android/Sdk" export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java -Djavafx.cachedir=${XDG_CACHE_HOME}/openjfx"
export CHROME_EXECUTABLE=/usr/bin/chromium export _Z_DATA="$XDG_DATA_HOME"/z
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
export DENO_DIR="$HOME/.config/deno" export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
export DENO_INSTALL_ROOT="$HOME/.local/bin/deno" export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export DIFFPROG=ediff export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
export SUDO_ASKPASS="$HOME/.local/bin/askpass" export DENO_DIR="$HOME"/.config/deno
export MANPAGER='less' export DENO_INSTALL_ROOT="$HOME"/.local/bin/deno
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export BROWSER=firefox export GEM_HOME="$XDG_DATA_HOME"/gem
export XMODIFIERS= export GEM_SPEC_CACHE="$XDG_CACHE_HOME"/gem
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
LESS_TERMCAP_mb="$(printf '\e[1;32m')" export GOPATH="$XDG_DATA_HOME"/go
LESS_TERMCAP_md="$(printf '\e[1;32m')" export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
LESS_TERMCAP_me="$(printf '\e[0m')" export HISTFILE="$XDG_STATE_HOME/bash/history"
LESS_TERMCAP_se="$(printf '\e[0m')" export ICEAUTHORITY="$XDG_CACHE_HOME"/ICEauthority
LESS_TERMCAP_so="$(printf '\e[01;33m')" export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
LESS_TERMCAP_ue="$(printf '\e[0m')" export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
LESS_TERMCAP_us="$(printf '\e[1;4;31m')" export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
export LESS_TERMCAP_mb export MYPY_CACHE_DIR="$XDG_CACHE_HOME"/mypy
export LESS_TERMCAP_md export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
export LESS_TERMCAP_me export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
export LESS_TERMCAP_se export NVM_DIR="$XDG_DATA_HOME"/nvm
export LESS_TERMCAP_so export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
export LESS_TERMCAP_ue export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export LESS_TERMCAP_us export PKG_CACHE_PATH="$XDG_CACHE_HOME"/pkg-cache
export PSQL_HISTORY="$XDG_DATA_HOME/psql_history"
alias wget='wget --hsts-file=$XDG_DATA_HOME/wget-hsts' export PYENV_ROOT="$XDG_DATA_HOME"/pyenv
export PYLINTHOME="$XDG_CACHE_HOME"/pylint
export PYTHONSTARTUP="$HOME"/python/pythonrc
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export SQLITE_HISTORY="$XDG_CACHE_HOME"/sqlite_history
export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
export TEXMFVAR="$XDG_CACHE_HOME"/texlive/texmf-var
export W3M_DIR="$XDG_DATA_HOME"/w3m
export WINEPREFIX="$XDG_DATA_HOME"/wine
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/xcompose
export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
export DOTNET_CLI_HOME="$XDG_DATA_HOME"/dotnet
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
export ANDROID_USER_HOME="$XDG_DATA_HOME"/android
PATH="/usr/lib/xfce-polkit/:$PATH" PATH="/usr/lib/xfce-polkit/:$PATH"
PATH="$HOME/.cabal/bin:$PATH" PATH="$HOME/.cabal/bin:$PATH"
@ -91,5 +100,6 @@ PATH="$GOPATH/bin:$PATH"
PATH="${CARGO_HOME}/bin:$PATH" PATH="${CARGO_HOME}/bin:$PATH"
PATH="$HOME/Android/Sdk/tools/bin:$PATH" PATH="$HOME/Android/Sdk/tools/bin:$PATH"
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.local/share/containers/podman-desktop/extensions-storage/compose/bin/:$PATH" PATH="$HOME/.config/plover/plugins/linux/bin:$PATH"
PATH="$HOME/.nix-profile/bin:$PATH"
export PATH export PATH