-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
35 lines (26 loc) · 986 Bytes
/
.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
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Bash prompt
PS1='\[\033[01;37m\]\u\[\033[00m\]:\[\033[01;32m\]\W\[\033[00m\]\$\[\033[00m\] '
# Always use UTF8
export LANG=en_US.UTF-8
# History, ignore duplicates, append
export HISTSIZE="10000"
export HISTFILESIZE="10000"
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups
shopt -s histappend
# fzf: Respect .gitignore and don't exclude hidden files
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
# Source additional files; alias
if [ -f $HOME/.alias ]; then source $HOME/.alias; fi
# Enable git completion on macos/bash
if [[ "$OSTYPE" == "darwin"* && "$SHELL" == "/bin/bash" ]]; then
. ~/.git-completion.bash
fi
# <start pyenv config>
# remove if not using pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# <end pyenv config>