-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
42 lines (33 loc) · 1.18 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
36
37
38
39
40
41
42
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=9999
HISTFILESIZE=9999
HISTCONTROL=ignoredups:ignorespace
PS1='\[\033[0m\]\u@\h\[\033[00m\]:\[\033[1;30m\]\W\[\033[00m\]\[\033[33m\]$(__git_ps1)\[\033[00m\]\$ '
# append to the history file, don't overwrite it
shopt -s histappend
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
if [ $(uname) == "Linux" ]; then
. ~/.bashrc-linux
elif [ $(uname) == "Darwin" ]; then
. ~/.bashrc-darwin
fi
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
if [ "$TERM" = "xterm-256color" ]; then
echo -ne "\033]0;$(whoami)@$(hostname)\007"
fi