forked from moprak/bashrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
94 lines (67 loc) · 2.42 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
################################ EXPORTS ##################################
# Export required stuff
if [ -f $HOME/.bash_stuff/exports ]; then
source $HOME/.bash_stuff/exports
fi
###########################################################################
################################ ALIASES ##################################
# Include alias definitions.
if [ -f $HOME/.bash_stuff/aliases ]; then
source $HOME/.bash_stuff/aliases
fi
###########################################################################
################################ OTHERS ##################################
# include all other definitions.
if [ -f $HOME/.bash_stuff/others ]; then
source $HOME/.bash_stuff/others
fi
###########################################################################
################################ FUNCTIONS ##################################
# Include function definitions.
if [ -f $HOME/.bash_stuff/functions ]; then
source $HOME/.bash_stuff/functions
fi
###########################################################################
################################ PROMPT ###################################
# Load our custom prompt
case "$TERM" in
screen-256color)
if [ -f $HOME/.bash_stuff/prompt ]; then
source $HOME/.bash_stuff/prompt
fi
;;
screen)
if [ -f $HOME/.bash_stuff/prompt ]; then
source $HOME/.bash_stuff/prompt
fi
;;
xterm)
if [ -f $HOME/.bash_stuff/prompt ]; then
source $HOME/.bash_stuff/prompt
fi
;;
xterm-256color)
if [ -f $HOME/.bash_stuff/prompt ]; then
source $HOME/.bash_stuff/prompt
fi
;;
*)
;;
esac
###########################################################################
####################### KDE Development ###################################
source $HOME/.cd-function
###########################################################################
########################## WELCOME SCREEN #################################
clear
echo -ne "${GREEN}" "Hello Doc. Today is "; date '+%A, %B %-d %Y'
echo -e "${LIGHTGRAY}"; cal ;
echo -ne "${CYAN}";
echo -ne "${CYAN} Sysinfo - Uptime ";uptime | awk '{print $3,$4,$5,$6,$7,$8,$9,$10,$11}' ;echo ""
echo -ne "${BROWN}";fortune;echo ""
###########################################################################