Split my system GNU/Linux config into ~/.bash_profile and ~/.bashrc files: Set locale…
- User
Split my system GNU/Linux config into ~/.bash_profile and ~/.bashrc files:
Set locale
export LANG="ru_RU.UTF-8"
Set prompt depending on user (root or non-root)
if [[ UID ]]; then PS1="# " else PS1="$ " fi export PS1
History settings
export HISTSIZE=100 export HISTFILESIZE=0
Less pager configuration
export LESSCHARSET="UTF-8" export LESS="-MMR"
Nethack options
export NETHACKOPTIONS='!autopickup,color'
Programming environments
export PYTHONHOME="/usr" export GOPATH="$HOME/go" export SBCL_HOME="/usr/lib64/sbcl"
XDG runtime directory
export XDG_RUNTIME_DIR="/run/user/1000"
Video driver settings
export VDPAU_DRIVER="radeonsi" export LIBVA_DRIVER_NAME="radeonsi"
Qt scaling and theming
export QT_QPA_PLATFORMTHEME="qt6ct" export GDK_DPI_SCALE="0.8807339449541285" export QT_AUTO_SCREEN_SCALE_FACTOR=1 export QT_ENABLE_HIGHDPI_SCALING=1
Wayland-specific environment variables
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then export MOZ_ENABLE_WAYLAND=1 export KITTY_ENABLE_WAYLAND=1 export CLUTTER_BACKEND=wayland export QT_QPA_PLATFORM=wayland-egl export ECORE_EVAS_ENGINE=wayland-egl export ELM_ENGINE=wayland_egl export SDL_VIDEODRIVER=wayland export GDK_BACKEND="wayland,x11" fi
- Assistant