dotfiles/system/.env
Severin Kaderli 1aada5a29e
Fix polybar configuration
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-01-09 20:56:52 +01:00

55 lines
1 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"
# 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"
# 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