-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
54 lines (38 loc) · 1.55 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
52
53
54
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
EDITOR=vim
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# Prevent bash from escaping $ for vars on tab completion
shopt -s direxpand
# Make grep search into hidden/dot files/directories. (and maybe other programs too)
shopt -s dotglob
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=100000
HISTFILESIZE=200000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
alias grep='grep --color=auto'
alias ls='ls -G'
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n$ '
alias ls='ls --color=auto'
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
LS_COLORS='ow=01;34;40'
export LS_COLORS
export GOROOT=$HOME/go
# TODO: Fill in private repos appropriately
# export GOPRIVATE="github.com/[USERNAME]"
export PATH=$HOME/bin:$HOME/.local/bin:${GOROOT}/bin:$PATH