-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
38 lines (31 loc) · 1 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
source ~/bin/colors.bash
source ~/bin/git_completion.bash
# ~/bin is the location of personal scripts I would like available everywhere
export PATH="$HOME/bin:$PATH"
# need this set to xterm-256color to get proper color support in vim
export TERM='xterm-256color'
alias ls='ls -G'
alias ll='ls -lahG'
alias vim='nvim'
ln -s ~/.vim ~/.config/nvim
export LSCOLORS="GxFxCxDxBxEgEdabagacad"
export GREP_OPTIONS="--color"
# Erase duplicates in history
export HISTCONTROL=erasedups
# Store 10k history entries
export HISTSIZE=10000
# Append to the history file when exiting instead of overwriting it
shopt -s histappend
alias q="exit"
alias gs="git status"
alias gpr="git pull --rebase"
alias asd="ping 8.8.8.8"
export EDITOR="vim -f"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
PS1="\[${RED}\]\\w\[${GREEN}\]\$(parse_git_branch)$ \[${RESET}\]"
if [ -f /usr/local/opt/chruby/share/chruby/chruby.sh ]; then
source /usr/local/opt/chruby/share/chruby/chruby.sh
fi
#exec fish