forked from Elemecca/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile
94 lines (74 loc) · 2.26 KB
/
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# ~/.profile: executed by the command interpreter for login shells.
# vim:ft=sh:ts=4:sw=4:noet:
# this is used by .bashrc
export have_run_profile=yes
# on OS X, load Homebrew GNU bin dirs
if [[ -d /usr/local/Cellar ]]; then
for dir in $(find /usr/local/Cellar \( -type d -a -name gnubin \)); do
PATH="$dir:$PATH"
done
fi
# if this is an interactive bash, load .bashrc
# unless we're being called from .bashrc
if [[ -n "$BASH" && "$-" == *i* && -z "$running_bashrc" ]]; then
source $HOME/.bashrc
fi
# add private bin to the PATH if it exists
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/.bin" ]; then
PATH="$HOME/.bin:$PATH"
fi
# add RVM to the PATH if it's installed
if [ -d "$HOME/.rvm/bin" ]; then
PATH="$PATH:$HOME/.rvm/bin"
fi
export EDITOR=$(which vim 2>&-)
export DEBFULLNAME="Sam Hanes"
export DEBEMAIL="[email protected]"
# if the modern (2.1+) GPG agent is installed, start it
# and interrogate it to set the legacy environment variables
if command -v gpg-connect-agent >/dev/null 2>&1; then
export $(gpg-connect-agent 2>/dev/null <<-END \
| awk 'RS=""; { if ($4 == "OK") print $1 "=" $3; }'
updatestartuptty
/echo
/echo GPG_AGENT_PID
getinfo pid
/echo
/echo GPG_AGENT_SOCK
getinfo socket_name
/echo
/echo GPG_AGENT_SSH_SOCK
getinfo ssh_socket_name
/bye
END
)
if [[ -S $GPG_AGENT_SOCK ]]; then
export GPG_AGENT_INFO="$GPG_AGENT_SOCK:$GPG_AGENT_PID:1"
fi
if [[ -S $GPG_AGENT_SSH_SOCK ]]; then
export SSH_AUTH_SOCK="$GPG_AGENT_SSH_SOCK"
export SSH_AGENT_PID="$GPG_AGENT_PID"
fi
# if we have an environment file from an older GPG agent, use that
elif [[ -f "$HOME/.gnupg/gpg-agent-info" ]]; then
source "$HOME/.gnupg/gpg-agent-info"
fi
#######################################################################
# Java Runtime Options #
#######################################################################
declare -a opts
# use proper anti-aliased fonts
opts+=(
'-Dawt.useSystemAAFontSettings=on'
'-Dswing.aatext=true'
)
# use the GTK look and feel for Swing
opts+=(
'-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
'-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
)
export JAVA_TOOL_OPTIONS="${opts[*]}"
unset opts