-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
29 lines (24 loc) · 1.09 KB
/
.bash_profile
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
# ~/.bash_profile
pathadd() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$1:$PATH"
fi
}
# Add these directories to $PATH.
pathadd "$HOME/.local/bin"
pathadd "/opt/homebrew/bin"
pathadd "/opt/homebrew/sbin"
unset -f pathadd
export HISTCONTROL="ignoreboth" # Lines which begin with a space character and lines which match the previous history entry are not saved in the history list.
export HISTFILESIZE=10000 # Maximum number of history events to save in history file.
export HISTSIZE=10000 # Maximum number of events stored in the internal history list.
export LANG="en_US.UTF-8" # Use en_us.UTF-8 encoding for default locale.
export LC_ALL="en_US.UTF-8" # Use en_us.UTF-8 encoding for all locales.
export LS_COLORS="di=0;36:ln=1;35" # Export colors for ls command (directory, symbolic link and leave the rest to default values).
# Set neovim as default visual editor.
if (which nvim &>/dev/null); then
export VISUAL="nvim"
fi
if [ "$BASHRC_SOURCED" != "yes" ] && [ -r "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi