-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
30 lines (24 loc) · 856 Bytes
/
.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
for file in ~/dotfiles/.{path,prompt,exports,extra}; do
[ -r "$file" ] && source "$file"
done
unset file
[ "$BASH" ] && [ ! "$IS_BASHRC_LOADED" ] && source ~/dotfiles/.bashrc
if [ ! "$(git config user.name)" ]; then
echo -n "Please, enter user name for git config [Name Surname (nickname)]: "
read GIT_AUTHOR_NAME
mkdir -p ~/.config/git/
git config -f ~/.config/git/config user.name "$GIT_AUTHOR_NAME"
fi
if [ ! "$(git config user.email)" ]; then
echo -n "Please, enter email for git config: "
read GIT_AUTHOR_EMAIL
mkdir -p ~/.config/git/
git config -f ~/.config/git/config user.email "$GIT_AUTHOR_EMAIL"
fi
alias e=$EDITOR
alias tm="tmux -2 -S /tmp/tm-$USER"
# _expand()
# {
# return 0;
# }
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*