Skip to content

Commit f987f7c

Browse files
committedMar 7, 2016
Move rbenv variables from .bashrc to .profile
1 parent d4f6750 commit f987f7c

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed
 

‎.bashrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
102102
. /etc/bash_completion
103103
fi
104104

105-
export PATH="$HOME/.rbenv/bin:$PATH"
106-
eval "$(rbenv init -)"
107-
108105
export ES_HEAP_SIZE=128m
109106

110107
export GOPATH=$HOME/go

‎.profile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ~/.profile: executed by the command interpreter for login shells.
2+
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3+
# exists.
4+
# see /usr/share/doc/bash/examples/startup-files for examples.
5+
# the files are located in the bash-doc package.
6+
7+
# the default umask is set in /etc/profile; for setting the umask
8+
# for ssh logins, install and configure the libpam-umask package.
9+
#umask 022
10+
11+
# if running bash
12+
if [ -n "$BASH_VERSION" ]; then
13+
# include .bashrc if it exists
14+
if [ -f "$HOME/.bashrc" ]; then
15+
. "$HOME/.bashrc"
16+
fi
17+
fi
18+
19+
# set PATH so it includes user's private bin if it exists
20+
if [ -d "$HOME/bin" ] ; then
21+
PATH="$HOME/bin:$PATH"
22+
fi
23+
24+
export PATH="$HOME/.rbenv/bin:$PATH"
25+
eval "$(rbenv init -)"

‎collect.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ cp ~/.vimrc vimrc
3131
cp /etc/systemd/system/sniff.service .
3232
cp /opt/sniff/sniff.json .
3333
cp ~/.bashrc .
34+
cp ~/.profile .
3435
cp /etc/gitweb.conf .

0 commit comments

Comments
 (0)
Please sign in to comment.