35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
# Default editor
|
|
export EDITOR='vim'
|
|
|
|
# Shell history file
|
|
export HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/shell/history"
|
|
|
|
# Global git config file
|
|
export GIT_CONFIG_GLOBAL="${XDG_CONFIG_HOME:-$HOME/.config}/git/config"
|
|
|
|
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
|
|
export PYTHONIOENCODING='UTF-8'
|
|
|
|
# Python commands in that file are executed before the first prompt is displayed in interactive mode.
|
|
# The file is executed in the same namespace where interactive commands are executed
|
|
# so that objects defined or imported in it can be used without qualification in the interactive session.
|
|
export PYTHONSTARTUP="${XDG_CONFIG_HOME:-$HOME/.config}/python/startup"
|
|
|
|
# Custom Python history file
|
|
export PYTHON_HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/python/history"
|
|
|
|
# PostgreSQL config file
|
|
export PSQLRC="${XDG_CONFIG_HOME:-$HOME/.config}/psql/rc"
|
|
|
|
# Wget config file
|
|
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/rc"
|
|
|
|
# ZSH directory
|
|
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|