-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc_custom
39 lines (35 loc) · 1.26 KB
/
.bashrc_custom
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
# ~/.bashrc_custom: if executed by bash, reads in customized aliases and
# environment variables
#
# USAGE: add the following lines to the bottom of your .bashrc file:
# if [ -f $HOME/.bashrc_custom ]; then
# . $HOME/.bashrc_custom;
# fi
#
# To define custom aliases or environment variables that work under
# any flavor of *nix, define them in ~/.bash_aliases or ~/.env_vars,
# then make sure you are executing them or this file from your .bashrc.
# If you have some aliases or environment variables that are specific
# to a particular flavor, put them in ~/.bash_aliases-darwin or
# ~/.bash_aliases-linux (or .env_vars-darwin, .env_vars-linux).
# The .git-completion.bash file comes from the Git source.
OS=$( uname | tr '[:upper:]' '[:lower:]')
for file in \
"$HOME/.bashrc-${USER}" \
"$HOME/.bash_aliases" \
"$HOME/.bash_aliases-${OS}" \
"$HOME/.bash_aliases-${USER}" \
"$HOME/.env_vars" \
"$HOME/.env_vars-${OS}" \
"$HOME/.env_vars-${USER}" \
"$HOME/.git-completion.bash"
do
if [ -f $file ]; then
. $file
fi
done
# Uncomment line below if you want users in your group to have
# read/write permissions on your files.
# umask 002
# If you're a die-hard vi user, uncomment the following line:
# set -o vi