forked from sgronblo/linuxfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
45 lines (37 loc) · 1.25 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
[ -z "$PS1" ] && return
#aliases
alias ls='ls --color=auto'
alias ll='ls -l'
alias la='ls -a'
alias dir='ls'
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_EDITOR=vim
#change the prompt
function setPrompt {
local GREEN_FG="$(tput setaf 2)"
local DEFAULT_FG="$(tput sgr0)"
local BLUE_FG="$(tput setaf 4)"
local YELLOW_FG="$(tput setaf 3)"
PS1="${GREEN_FG}\w\n${DEFAULT_FG}[${GREEN_FG}\u${DEFAULT_FG}@${GREEN_FG}\h${DEFAULT_FG}${YELLOW_FG}\$(__git_ps1)${DEFAULT_FG}]\n> "
}
setPrompt
source ~/linuxfiles/mvn-color-function.sh
# 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
export TERM=xterm-256color
#ignore same inputs in history
export HISTIGNORE="&"
alias rirssi="screen -rd irssi"
alias startirssi="screen -S irssi irssi"
# source the right rvm function creation script based on rvm being installed system-wide or user-wide
if [[ -s /usr/local/lib/rvm ]]; then
source /usr/local/lib/rvm
elif [[ -s $HOME/.rvm/scripts/rvm ]]; then
source $HOME/.rvm/scripts/rvm
fi
alias rirssi="screen -rd irssi"
alias startirssi="screen -S irssi irssi"