#!/bin/bash # # SCRIPT NAME: # .env # # AUTHOR: # Severin Kaderli # # 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" # Bash export HISTCONTROL=ignoreboth export HISTSIZE=1000 export HISTFILESIZE=2000 # Setting default editor and terminal 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:$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