-
Notifications
You must be signed in to change notification settings - Fork 7
/
.bash_profile
54 lines (42 loc) · 1.74 KB
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# shellcheck shell=bash disable=SC1090
## Set Environment Variables
# -----------------------------------------------------------------------------
export BROWSER="qutebrowser"
export EDITOR="nvim"
export VISUAL="$EDITOR"
export TERMCMD="alacritty msg create-window"
# merge program for pacdiff
export DIFFPROG="$EDITOR -d"
# find locally installed executables
export PATH="$PATH:$HOME/.local/bin:$HOME/.luarocks/bin"
# run askpass to enter password when not launched from a terminal
export SUDO_ASKPASS="/usr/lib/git-core/git-gui--askpass"
export SSH_ASKPASS="$SUDO_ASKPASS"
# get qt5 apps to use native gtk style (through qt5-styleplugins)
export QT_QPA_PLATFORMTHEME="gtk2"
export DESKTOP_SESSION="gnome"
# integrate Fcitx input method framework
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export XMODIFIERS="@im=fcitx"
# set path to configuration files for some programs
export WEECHAT_HOME="$HOME/.config/weechat"
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc"
export PYTHONSTARTUP="$HOME/.config/python/config.py"
export INPUTRC="$HOME/.config/readline/inputrc"
# custom fzf color configuration and keybindings
export FZF_DEFAULT_OPTS="--color 16,fg:15,bg:0,hl:11,fg+:15,bg+:237,hl+:11 \
--color info:12,prompt:248,spinner:11,pointer:12,marker:208,header:241 \
--color border:7 --bind alt-a:toggle-all \
--walker-skip .git,node_modules,.venv"
# source environment variables which are not under version control
if [[ -r ~/.bash_profile.local ]]; then
source ~/.bash_profile.local
fi
## Start session
# -----------------------------------------------------------------------------
if [[ -z $DISPLAY && -n $(type -t startx) && $(tty) = /dev/tty1 ]]; then
exec systemd-cat startx -- -keeptty
elif [[ -r ~/.bashrc ]]; then
source ~/.bashrc
fi