forked from SteveBidenko/mus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_mine
51 lines (42 loc) · 1.51 KB
/
.bash_mine
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
# set -x
# for autocomplete add:
[ -f ~/.git-completion.bash ] && source ~/.git-completion.bash
# for show current branch add:
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}")"
}
# User specific environment and startup programs
RED="\[\033[0;31m\]"
CYAN="\[\033[0;36m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
WHITE="\[\033[0;38m\]"
RESET="\[\033[0;0m\]"
#if [ "$UID" = "0" ];
#then YELLOW="\[\033[0;31m\]" fi
export PS1="$YELLOW[$CYAN\u$YELLOW@$CYAN\h$YELLOW:$CYAN\w$GREEN\$(parse_git_branch)$YELLOW]\$ $WHITE"
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
if [ -f ~/.lessfilter ] ; then
export LESS='-R'
# export LESSOPEN='|~/.lessfilter %s'
export ACK_PAGER_COLOR=less
fi
export TZ="Europe/Kiev"
export EDITOR="vim"
if [ -f ~/.lessfilter ] ; then
export LESS='-R'
# export LESSOPEN='|~/.lessfilter %s'
export ACK_PAGER_COLOR=less
fi
alias mc="mc"
alias viewlogs='cd /var/log; sudo tail -f `sudo find . -name "*log"`'
alias prettyjson='python -m json.tool'
umask 002
export PATH="/sbin:/usr/sbin:/usr/local/sbin:$HOME/.composer/vendor/bin:$PATH"