dotfiles/system/.env
Severin Kaderli 005c4f29b6
Move even more files to .config
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-02-12 23:28:30 +01:00

74 lines
No EOL
1.8 KiB
Bash

#!/bin/bash
#
# SCRIPT NAME:
# .env
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# DESCRIPTION:
# This file contains declarations of environment variables.
#
# USAGE:
# This script is sourced by .bashrc
. "${HOME}/bin/utils.sh"
# XDG_Base_Directories
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DATA_HOME="${HOME}/.local/share"
# XDG Overrides for unsupported programs
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME}/httpie"
export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority"
export WGETRC="${XDG_CONFIG_HOME}/wget/wgetrc"
export VIMINIT=":source ${XDG_CONFIG_HOME}/vim/vimrc"
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
export RUSTUP_HOME="${XDG_DATA_HOME}/rustup"
export PYLINTHOME="${XDG_CACHE_HOME}/pylint"
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
export GTK_RC_FILES="${XDG_CONFIG_HOME}/gtk-1.0/gtkrc"
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc"
export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc"
# Bash
export HISTCONTROL=ignoreboth
export HISTSIZE=1000
export HISTFILESIZE=2000
# Setting applications
export VISUAL=vim
export EDITOR="$VISUAL"
export TERMINAL=termite
# QT
export T_QPA_PLATFORMTHEME=gtk2
export QT_STYLE_OVERRIDE=gtk2
# Ibus
export GTK_IM_MODULE=xim
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=xim
# Node.js
export npm_config_prefix="$HOME/.node_modules"
# Go
export GOPATH=$HOME/go
# Adding folders to the PATH variable
export PATH="${PATH}:${CARGO_HOME}/bin:${HOME}/bin:${npm_config_prefix}/bin:${GOPATH/}bin:${HOME}/.config/composer/vendor/bin"
# Set bash prompt
set_bash_prompt() {
PS1="${RESET}┌─"
PS1="${PS1}${RED}[\t]"
PS1="${PS1}${BLUE}[\h]"
PS1="${PS1}${YELLOW}[\w]"
PS1="${PS1}${BLUE}$(__git_ps1 "[%s]")"
PS1="${PS1}${RESET}\n└─╼ "
export MSYS2_PS1="$PS1"
}
export PROMPT_COMMAND=set_bash_prompt