-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc
25 lines (19 loc) · 987 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
# .bashrc
# Required for ondemand dot-file sync and switching to zsh
# bashrc is for aliases, functions, and shell configuration intended for use in
# interactive shells. However, in some circumstances, bash sources bashrc even
# in non-interactive shells (e.g., when using scp), so it is standard practice
# to check for interactivity at the top of .bashrc and return immediately if
# the shell is not interactive. The following line does that; don't remove it!
[[ $- != *i* ]] && return
# Load CentOS stuff and Facebook stuff (don't remove these lines).
[ -f /etc/bashrc ] && source /etc/bashrc
[ -f /usr/facebook/ops/rc/master.bashrc ] && source /usr/facebook/ops/rc/master.bashrc
# Keep oodles of command history (see https://fburl.com/bashhistory).
HISTFILESIZE=-1
HISTSIZE=1000000
shopt -s histappend
# We don't actually need this in bashrc, but `brew install fzf` in setup.sh adds this here.
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Switch to zsh finally
zsh; exit "$?"