forked from keflavich/configfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
35 lines (27 loc) · 1.11 KB
/
.bashrc
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
# .bashrc
PATH=~/.bin:/usr/local/bin:$PATH
HISTSIZE=50000
export HISTTIMEFORMAT="%d/%m/%y %T "
export HISTSIZE
shopt -s histappend
shopt -s hostcomplete
shopt -s nocaseglob
# "friendly" colors https://wiki.archlinux.org/index.php/Color_Bash_Prompt
. ~/.colors
# instead, just use macbook #host_short=`echo $HOSTNAME | sed 's/\([-a-z_]*\).*/\1/'`
host_short=""
export PROMPT_COMMAND='echo -ne "\033]0;$host_short${PWD/#$HOME/~}\007"; history -a'
export PROMPT_COMMAND='history -a; ___vcs_dir'
# could use \h instead of the variable to automatically get hostname
export PS1=" \[${Cyan}\]$host_short\[${Purple}\]\w\\$ \[${txtrst}\]"
export PS1="\`echo -e \"\[${Cyan}\]$host_short \[${Purple}\]\w\[${Green}\]\[\$__vcs_color\]\$__vcs_branch\[${Yellow}\]\$tailchar\[${txtrst}\]\"\`"
set -o ignoreeof
# sets ls to be in color by default
export CLICOLOR=yes
export LSCOLORS="gxfxcxdxbxegedabagacad"
# parse_git_branch () {
# git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (\1)#'
# }
# export PS1="${Yellow}\$(parse_git_branch) "$PS1
# export PS1="\[${Yellow}\] "$PS1 #need square braces!
export SBT_OPTS=-XX:MaxPermSize=4096M