-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc_user
executable file
·54 lines (42 loc) · 1.19 KB
/
.bashrc_user
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
51
52
53
54
# User specific part of .bashrc
# Attach it with ". ~/.bashrc_user" in .bashrc file
# Full path of this script
# for greadlink: brew install coreutils
#THIS=`(command -v greadlink && greadlink -f "${BASH_SOURCE[0]}") || readlink -f "${BASH_SOURCE[0]}"`
# This directory path
#DIR=`dirname "${THIS}"`
#variables
if [ -f ~/.bash_vars ]; then
. ~/.bash_vars
fi
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=500000
HISTFILESIZE=1000000
# Alias definitions.
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
# `brew install bash-completion` caveats:
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
#Prompt
#PS1="\u@\h \w \$ "
PS1=" \[\033[01;32m\]λ\[\033[00m\]$PS_HOST \[\033[01;34m\]\w\[\033[00m\] "
#Git prompt
#. "$DIR/modules/git/contrib/completion/git-prompt.sh"
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWSTASHSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWUPSTREAM="git verbose legacy"
GIT_PS1_DESCRIBE_STYLE="default"
GIT_PS1_SHOWCOLORHINTS=1
PSORIG="$PS1"
PS1=$PSORIG'$(__git_ps1 "\[\033[01;33m\]%s \[\033[00m\]")'
#Functions
h2d(){
echo "ibase=16; $@"|bc
}
d2h(){
echo "obase=16; $@"|bc
}
#Completions
#. ~/.fastlane/completions/completion.sh