-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
36 lines (31 loc) · 1.17 KB
/
Copy path.bash_profile
File metadata and controls
36 lines (31 loc) · 1.17 KB
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
#####################
### BASH PROFILE ###
#####################
# Bash loads /etc/profile, then looks for (in order):
# ~/.bash_profile
# ~/.bash_login
# ~/.profile
# and only executes the first one it finds.
# Running bash
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then source "$HOME/.bashrc"; fi
fi
# Load dotfiles
if [ -f $HOME/.dir_colors ]; then eval `dircolors -b $HOME/.dir_colors`; fi
if [ -f $HOME/.git_completion ]; then source $HOME/.git_completion; fi
if [ -f $HOME/.bash_aliases ]; then source $HOME/.bash_aliases; fi
if [ -f $HOME/.bash_functions ]; then source $HOME/.bash_functions; fi
if [ -f $HOME/.inputrc ]; then source $HOME/.inputrc; fi
# Enable programmable completion
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
source /etc/bash_completion
fi
# Fun startup commands
commands=(
"$(ls ~/ascii | shuf -n 1)" # Random ASCII Art
"pokemon-colorscripts -r" # Random Pokemon
"cbonsai -p" # Cbonsai with Random Plant
"curl 'http://wttr.in/detroit?Tn1'" # Weather in Detroit
)
random_index=$(shuf -i 0-$((${#commands[@]} - 1)) -n 1)
eval "${commands[$random_index]}"