dotfiles/system/.env
Severin Kaderli d2a27f0df5
Move .crontab to .config/cron/crontab
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-02-05 15:50:14 +01:00

60 lines
1.2 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"
# 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