-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
63 lines (47 loc) · 1.61 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
55
56
57
58
59
60
61
62
63
#
# ~/.bash_profile
#
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/.bin" ] ; then
PATH="$HOME/.bin:$PATH"
fi
export EDITOR=nvim
export KUBECTL_EXTERNAL_DIFF=meld
# AWS cli autocompletion
complete -C /usr/bin/aws_completer aws
# Scaling workaround for alacritty
# https://github.com/jwilm/alacritty/issues/1339#issuecomment-394315012
export WINIT_HIDPI_FACTOR=1.3
export TERMINAL=alacritty
# Silence 'Picked up _JAVA_OPTIONS' message on command line
# https://web.archive.org/web/20190507235748/https://wiki.archlinux.org/index.php/Java#Silence_'Picked_up_JAVA_OPTIONS'_message_on_command_line
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
_SILENT_JAVA_OPTIONS="$_JAVA_OPTIONS"
unset _JAVA_OPTIONS
alias java='java "$_SILENT_JAVA_OPTIONS"'
# Qt5
export QT_QPA_PLATFORMTHEME=qt5ct
# Bat
export BAT_THEME=base16
# IEx history (https://www.adiiyengar.com/blog/20180503/iex-shell-history)
export ERL_AFLAGS="-kernel shell_history enabled -kernel shell_history_file_bytes 2097152"
# Ruby
export GEM_HOME="$(gem env user_gemhome)"
export PATH="$PATH:$GEM_HOME/bin"
# Go
export GOPATH="$HOME/.go"
export PATH="$PATH:$GOPATH/bin"
# Nodejs
export npm_config_prefix="$HOME/.local"
# Initialize rbenv (added by `rbenv init`)
eval "$(rbenv init - --no-rehash bash)"
# Load secrets and API keys
[[ -f ~/.env ]] && . ~/.env
# Load .bashrc
[[ -f ~/.bashrc ]] && . ~/.bashrc
# Autostart X at login
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec ssh-agent /usr/bin/startx
fi