-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
executable file
·80 lines (63 loc) · 2.1 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
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# Newer go-lang.
export PATH=/usr/lib/go-1.10/bin:$PATH
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
######################################
# Custom stuff below.
######################################
# Allow core dumps
ulimit -c unlimited
# Workaround for Intellij input issue on IBus < 1.5.11: https://youtrack.jetbrains.com/issue/IDEA-78860
export IBUS_ENABLE_SYNC_MODE=1
# Try to get the gpg agent to work.
export GPGKEY=66F2054B
export GPG_TTY=$(tty)
export GPG_AGENT_INFO
PATH=$HOME/applications/google_appengine:$PATH
PATH="/usr/local/heroku/bin:$PATH"
# For pip install --user.
PATH=$HOME/.local/bin:$PATH
# For bpftrace
PATH=$HOME/applications/bpftrace/bin:$PATH
export MANPATH=$MANPATH:$HOME/applications/bpftrace/man
# VTune.
if [ -f "/opt/intel/vtune_amplifier_xe/amplxe-vars.sh" ]; then
source "/opt/intel/vtune_amplifier_xe/amplxe-vars.sh" "quiet"
fi
# For bundler.
# TODO: FIXME: bionic barfing on this?
#if which ruby >/dev/null && which gem >/dev/null; then
# PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
#fi
# For Chromium and breakpad
#PATH=$HOME/src/depot_tools:$PATH
# For Kudu
PATH=$HOME/src/kudu/thirdparty/installed/common/bin:$PATH
PATH=$HOME/bin/llvm-system-bin:$PATH
PATH=$HOME/src/kudu/thirdparty/clang-toolchain/bin:$PATH
PATH=/usr/lib/ccache:$PATH
PATH=$HOME/bin/ccache:$PATH # My preferred ccache stuff.
export PATH
# Allow for a local .profile
LOCAL_PROFILE=$HOME/.profile.local
if [ -f $LOCAL_PROFILE ]; then
source $LOCAL_PROFILE
fi
unset LOCAL_PROFILE