-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
54 lines (42 loc) · 1.3 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
# ~/.bashrc
############################################
# Global aliases and functions #
############################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Enable programmable completion features
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# Enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
fi
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
############################################
# User specific aliases and functions #
############################################
# User vars
export EDITOR="vim"
export JAVA_HOME=$(readlink -f /usr/bin/java | sed 's#bin/java$##')
export GOPATH="$HOME/Code/GO"
export HISTCONTROL=ignoredups
# Set up PATH
PATH=$PATH:~/Code/Scripts:$GOPATH/bin
# set a fancy prompt
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]]\$ '
# Alias definitions.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Private info.
if [ -f ~/.bash_private ]; then
. ~/.bash_private
fi