forked from jdavcs/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
41 lines (33 loc) · 1010 Bytes
/
bashrc
File metadata and controls
41 lines (33 loc) · 1010 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
36
37
38
39
40
41
# Load shell dotfiles
DOTFILES=dotfiles
source ~/${DOTFILES}/aliases
source ~/${DOTFILES}/export
# Set terminal title to $PWD
PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"'
# Don't overwirte existing files by redirection
set -o noclobber
# Simple prompt: violet, host only
PS1="\[\e[1;35m\]\h$ \[\e[0m\]"
# Load local .bashrc
if [[ -f ~/.bashrc-local ]]; then
source ~/.bashrc-local
fi
# Load git completions
. ~/${DOTFILES}/git-completion.bash
# Load solarized colors for ls
eval $(dircolors ~/.dircolors)
# pip bash completion start
_pip_completion()
{
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip
# pip bash completion end
# virtualenv/virtualenvwrapper:
if [[ -a /usr/local/bin/virtualenvwrapper.sh ]]; then
export WORKON_HOME="${HOME}/.virtualenvs"
export PROJECT_HOME="${HOME}/0dev/pythonvw_projects"
source /usr/local/bin/virtualenvwrapper.sh
fi