diff --git a/.config/python/pythonrc b/.config/python/pythonrc new file mode 100644 index 0000000..55d1708 --- /dev/null +++ b/.config/python/pythonrc @@ -0,0 +1,19 @@ +# -*- python -*- + +import os +import atexit +import readline + +history = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history') +try: + readline.read_history_file(history) +except OSError: +pass + +def write_history(): +try: + readline.write_history_file(history) +except OSError: +pass + +atexit.register(write_history) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index feea10d..40e54a4 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -1,4 +1,4 @@ -## Settings +#--- General ---# # Directories export CAPTURE="$HOME/pictures/screen-captures" @@ -20,11 +20,15 @@ export PLATFORMIO_HOME_DIR="$XDG_DATA_HOME/platformio" export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron" # HiDPI screen - # >>> hostname=arch-laptop # export HIDPI=true # <<< +#--- Program Specific ---# + +# Android +export ANDROID_HOME="$XDG_DATA_HOME/android" + # GPG export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" @@ -67,6 +71,9 @@ export RANDFILE="$XDG_CACHE_HOME/rnd" [ "$HIDPI" = true ] && export PANEL_HEIGHT=38 || export PANEL_HEIGHT=22 export PANEL_NAME="polybar_panel" +# Python +export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc" + # Qt5 if [ "$HIDPI" = true ]; then export QT_AUTO_SCREEN_SCALE_FACTOR=0 @@ -74,6 +81,10 @@ if [ "$HIDPI" = true ]; then fi export QT_QPA_PLATFORMTHEME="qt5gtk2" +# Rust +export CARGO_HOME="$XDG_DATA_HOME/cargo" +export RUSTUP_HOME="$XDG_DATA_HOME/rustup" + # Sudo export SUDO_ASKPASS="$HOME/.local/bin/rofipass" @@ -89,6 +100,9 @@ export BROWSER="firefox" # Wget export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" +# Wine +export WINEPREFIX="$XDG_DATA_HOME/wine" + # WM export WM="bspwm"