-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
48 lines (38 loc) · 987 Bytes
/
.bash_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
# Alias
alias terminal='open -a "Terminal"'
if [ "$(uname)" = 'Darwin' ]; then
alias ls='ls -FGlAhp'
else
alias ls='ls -FGlAhp --color=auto'
fi
#hostname=`hostname | cut -c 1-5`
#PS1="[\u@$hostname:$YROOT_NAME \W]"
cdls () {
\cd "$@" && ls
}
alias cd="cdls"
calc() {
awk "BEGIN {print $*}"
}
alias sort="gsort"
# Parameters
HISTSIZE=50000
HISTTIMEFORMAT='%Y/%m/%d %H:%M:%S '
# Path
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$HOME/bin:$PATH"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# rbenv
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/bin:$PATH"
# chef
export PATH="$HOME/.chefdk/gem/ruby/2.4.0/bin:$PATH"
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
echo $file
[ -r "$file" ] && [ -f "$file" ] && source "$file" && echo "$file";
done;
unset file;