-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos-linux.sh
58 lines (51 loc) · 1.26 KB
/
os-linux.sh
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
# Startx on boot
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx
fi
# Qt5 style
export QT_QPA_PLATFORMTHEME='gtk3'
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
# Lastpass (don't quit) I'm auto logged into chrome anyway
export LPASS_AGENT_TIMEOUT=0
# FZF_TMUX config
export FZF_TMUX=1
export FZF_TMUX_HEIGHT="50%"
# Android home
if [ -d /opt/android-sdk ]; then
export ANDROID_HOME=/opt/android-sdk
export PATH=${PATH}:${ANDROID_HOME}/tools/bin
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
fi
# ssh key chain (see .xinitrc)
if [ -n "$DESKTOP_SESSION" ]; then
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
fi
# Load direnv
if [[ $(whoami) = 'charles' ]]; then
if [[ -n "$ZSH_VERSION" ]]; then
eval "$(direnv hook zsh)"
elif [[ -n "$BASH_VERSION" ]]; then
eval "$(direnv hook bash)"
fi
fi
# rbenv
# export PATH="$HOME/.rbenv/shims:${PATH}"
# export RBENV_SHELL=zsh
# source '/usr/lib/rbenv/libexec/../completions/rbenv.zsh'
# command rbenv rehash 2>/dev/null
# rbenv() {
# local command
# command="$1"
# if [ "$#" -gt 0 ]; then
# shift
# fi
#
# case "$command" in
# rehash|shell)
# eval "$(rbenv "sh-$command" "$@")";;
# *)
# command rbenv "$command" "$@";;
# esac
# }