-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.bash_profile
More file actions
63 lines (48 loc) · 1.95 KB
/
.bash_profile
File metadata and controls
63 lines (48 loc) · 1.95 KB
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
55
56
57
58
59
60
61
62
63
# shellcheck shell=bash disable=SC1090
## Set Environment Variables
# -----------------------------------------------------------------------------
export BROWSER="qutebrowser"
export {EDITOR,VISUAL}="nvim"
export TERMCMD="alacritty msg create-window"
# merge program for pacdiff
export DIFFPROG="$EDITOR -d"
# find locally installed executables
export PATH="$HOME/.local/bin:$HOME/.luarocks/bin:$PATH"
# 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"
# set up LS_COLORS environment variable
eval "$(dircolors)"
# colored manpages
export MANPAGER="less -Dd+R -DuGd -Dsybd"
export MANROFFOPT='-c'
# use old python repl which supports vi mode
export PYTHON_BASIC_REPL="true"
# 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