-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbashrc
39 lines (31 loc) · 1.2 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
#==============================================================================
#
# FILE: bash_profile
# USAGE: . bash_profile
# DESCRIPTION: Sets application-wide functions
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Kevin Huntly <kmhuntly@gmail.com>
# COMPANY: ---
# VERSION: 1.0
# CREATED: ---
# REVISION: ---
#
#==============================================================================
[[ "$-" != *i* ]] || [ -z "${PS1}" ] && return;
## load the logger
if [[ -r "${HOME}/lib/system/logger.sh" ]] && [[ -s "${HOME}/lib/system/logger.sh" ]] && [[ -z "${LOGGING_LOADED}" ]]; then source "${HOME}/lib/system/logger.sh"; fi
if [[ -z "$(command -v "writeLogEntryToFile")" ]]; then printf "\e[00;31m%s\033[0m\n" "Failed to load logging configuration. No logging available!" >&2; declare LOGGING_LOADED="${_FALSE}"; fi;
declare -x PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:${HOME}/bin";
source "${HOME}/.profile";
source "${HOME}/.alias";
source "${HOME}/.functions";
showHostInfo;
## trap logout
trap 'logoutUser; exit' 0;
## make the umask sane
umask 022;