-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
executable file
·29 lines (22 loc) · 829 Bytes
/
bash_profile
File metadata and controls
executable file
·29 lines (22 loc) · 829 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
# Auto-switch to zsh in Codespaces (only for interactive shells to avoid breaking scripts)
if [ -n "$CODESPACES" ] && [ -z "$ZSH_VERSION" ] && [[ $- == *i* ]] && command -v zsh &> /dev/null; then
exec zsh -l
fi
for file in ~/.{bash_prompt,aliases}; do
[ -r "$file" ] && source "$file"
done
unset file
# Exports
# Don’t clear the screen after quitting a manual page
export MANPAGER="less -X"
# Prefer US English and use UTF-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US"
# Larger bash history (allow 32³ entries; default is 500)
export HISTSIZE=32768
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL=ignoredups
# Source rbenvrc if it exists (not present in Codespaces)
[ -f ~/.rbenvrc ] && source ~/.rbenvrc
# Make some commands not show up in history
export HISTIGNORE="ls:ls *:cd:cd -:pwd;exit:date:* --help"