-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
executable file
·48 lines (38 loc) · 1.59 KB
/
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
48
# Make ls and such colorful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
# Paths
export PATH="/usr/sbin:$PATH"
if [[ $OSTYPE == darwin* ]]; then
export PATH="/Applications/adt-bundle-mac-x86_64/sdk/platform-tools:$PATH"
export PATH="~/Sites/cakephp/lib/Cake/Console:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="$(brew --prefix josegonzalez/php/php55):$PATH"
fi
# Grep should highlight matches
export GREP_OPTIONS='--color=auto'
# Command History
export HISTCONTROL=ignoredups:erasedups
export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTTIMEFORMAT="[%F %T] "
# Eternal Bash History
shopt -s histappend
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# Fix terminal title after disconnecting from another SSH server
export PROMPT_COMMAND="echo -ne \"\033]0;${USER}@${HOSTNAME}\007\"; $PROMPT_COMMAND"
# Include other files
for i in ~/Repositories/dot-files/*.sh; do
source $i
done
# Autojump
[[ $OSTYPE == darwin* && -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
# Autoenv
[[ $OSTYPE == darwin* && -s `brew --prefix`/opt/autoenv/activate.sh ]] && source `brew --prefix`/opt/autoenv/activate.sh
# Custom Prompt
PS1="\n[\[\033[35m\]\$(/bin/date '+%r')\[\033[m\]] \[\033[32m\]\w\[\033[0m\]\[\033[1;31m\]\$(__git_ps1)\[\033[0m\]\n[\[\033[36m\]\u\[\033[m\]@\[\033[1;31m\]\h\[\033[0m\]]\[\033[1;33m\]-> \[\033[0m\]"
# Prompt title
export PROMPT_TITLE=""
export PROMPT_COMMAND="echo -ne \"\033]0;\${PROMPT_TITLE}\${USER}@\${HOSTNAME}\007\"; $PROMPT_COMMAND"