-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·35 lines (23 loc) · 807 Bytes
/
bashrc
File metadata and controls
executable file
·35 lines (23 loc) · 807 Bytes
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
#echo "loading .bashrc"
#source ~/.bash_profile
# Bash customisations to be syncronised between machines.
#export PS1='\[\e[1;34m\][\u@\h \W]\$\[\e[0m\] '
export PS1="\w \$(parse_git_branch)\$ "
# Enable vi mode
set -o vi
# History
export HISTCONTROL=erasedups # when adding an item to history, delete itentical commands upstream
export HISTSIZE=10000 # save 10000 items in history
shopt -s histappend # append history to ~\.bash_history when exiting shell
# Lazy aliases
alias l='ls -l'
alias la='ls -Al'
alias ..='cd ..'
# git aliases
# http://titusd.co.uk/2010/08/29/use-g-as-an-alias-for-git-without-losing-autocompletion
alias g='git'
# Vim aliases
alias rvim='mvim --remote-silent '
# Reload .bashrc
alias refresh='. ~/.bashrc'
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting