-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
43 lines (33 loc) · 941 Bytes
/
bash_profile
File metadata and controls
43 lines (33 loc) · 941 Bytes
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
# Prettify
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export EDITOR=vim
#History
HISTTIMEFORMAT='%F %T '
# Keep my history longer
HISTFILESIZE=1000000000 HISTSIZE=1000000
# Enable git bash completion (this is likely to change)
. /Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\033[1;33m\]'
c_path='\[\e[1;37m\]'
# c_git_clean='\[\e[0;32m\]'
# c_git_dirty='\[\e[0;31m\]'
else
c_reset=
c_user=
c_path=
# c_git_clean=
# c_git_dirty=
fi
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# git bash completion
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
# prompt with git
PROMPT_COMMAND='PS1="\e[0;34m\w\e[0;32m$(__git_ps1):\[\e[1;37m\]\n"'