forked from hytebyte/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
35 lines (26 loc) · 904 Bytes
/
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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[[ -e ~/.bashrc_custom ]] && . ~/.bashrc_custom
# Don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignorespace:ignoredups
# Store at most 5000 lines of history.
HISTSIZE=10000
unset HISTFILESIZE
# Append to the history file, don't overwrite it.
shopt -s histappend
# Disable special handling of !
set +o histexpand
parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\n\[\e[3${PROMPT_COLOR:-2}m\]\u@\h \[\e[33m\]\w\[\e[0m\] \$(parse_git_branch)\n\\$ "
eval "$(dircolors -b)"
alias grep='grep --color'
alias ll='ls -alFh'
alias info='info --vi-keys'
alias godeps="comm -2 -3 <(go list -f '{{join .Deps \"\n\"}}' | sort) <(go list std | sort)"
alias ls='ls --color=auto'
which >/dev/null 2>&1 nvim && alias vim=nvim