-
Notifications
You must be signed in to change notification settings - Fork 2
/
.profile
50 lines (42 loc) · 1.36 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
# This file is included by ~/.bashrc if the PROFILE_INCLUDED
# variable is not defined. It automatically includes ~/.bashrc
# if BASHRC_INCLUDED is not defined.
PROFILE_INCLUDED='true'
if [ -z "$BASHRC_INCLUDED" ]; then
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# The default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# Set PATH so it includes user's private bin and rubygems if they exist.
for new_path in "$HOME/bin" "/var/lib/gems/1.8/bin" "/var/lib/gems/1.9/bin"
do
if [ -d "$new_path" ] ; then
PATH="$PATH:$new_path"
fi
done
PATH="/usr/local/bin:$PATH"
# Set the default editor to vim, you can safely change this to
# the editor of your choosing.
export EDITOR="/usr/bin/vim"
export SVN_EDITOR="/usr/bin/vim"
# Colors for OSX terminal, and ls colors that match linux ls
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# Some convenience aliases
alias pscreen="screen -c $HOME/.screenrc.programming"
alias rscreen="screen -c $HOME/.screenrc.rails"
alias sscreen="screen -c $HOME/.screenrc.server"
alias calc="bc -l"
alias vi="vim"
alias ll='ls -l'
alias la='ls -al'
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Ruby/Rails aliases
alias be='bundle exec'
alias bspec='RSPEC_RETRY_COUNT=0 bundle exec rspec'