-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
51 lines (39 loc) · 1.26 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
43
44
45
46
47
48
49
50
51
eval "$(/opt/homebrew/bin/brew shellenv)"
export BASH_SILENCE_DEPRECATION_WARNING=1
export HOMEBREW_NO_EMOJI=1
if [ -f /opt/homebrew/share/bash-completion/bash_completion ]; then
source /opt/homebrew/share/bash-completion/bash_completion
fi
for script in /opt/homebrew/etc/bash_completion.d/git-{completion,prompt}.sh; do
[ -f "$script" ] && source "$script"
done
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWDIRTYSTATE=true
PS1='\n\n$PWD $(__git_ps1 "├%s")\n> '
PS1='\n$PWD > '
alias bashrc='vi ~/.bashrc && . ~/.bashrc'
alias vimrc='vi ~/.vimrc'
alias gitconfig='vi ~/.gitconfig'
alias hosts='sudo vi /etc/hosts'
alias sshconfig='vi ~/.ssh/config'
alias python='python3'
alias pip='pip3'
alias vi='vim -p'
alias ls='ls -F'
alias ll='ls -lh'
alias lla='ls -lhA'
alias la='ls -1A'
alias l='ls -1'
export GREP_OPTIONS="--color=auto"
alias rgrep='grep --context=2 --ignore-case --line-number --recursive'
alias py='python3'
alias b='bundle exec'
HISTSIZE=50000
HISTFILESIZE=$HISTSIZE
SHELL_SESSION_HISTORY=0
HISTIGNORE="ls:ll:lla:la:l:cd:gd:gg:gl*:gf:vg"
HISTCONTROL=ignoredups:ignorespace:erasedups # do not duplicate lines
shopt -s histappend # append the history file instead overwriting
if type rbenv &> /dev/null; then
eval "$(rbenv init -)"
fi