-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
118 lines (101 loc) · 3.38 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Source global definitions
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# Add timestamps to the history function
export HISTTIMEFORMAT="%d/%m/%y %T "
# Defaults Section
LinuxVersion=$(inxi -S)
iamme=$(whoami)
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
###################
# Sourced Scripts #
###################
. ~/GIT/nanosecond/aliases
. ~/GIT/nanosecond/apt-search
. ~/GIT/nanosecond/apt-show
. ~/GIT/nanosecond/apt-stuff
. ~/GIT/nanosecond/bible_reading
. ~/GIT/nanosecond/catgrapple
. ~/GIT/nanosecond/colorize
. ~/GIT/nanosecond/debinstall
. ~/GIT/nanosecond/ducolor
. ~/GIT/nanosecond/encoder
. ~/GIT/nanosecond/extract
. ~/GIT/nanosecond/fixmouse
. ~/GIT/nanosecond/forcefsck
. ~/GIT/nanosecond/installstuff
. ~/GIT/nanosecond/julian
. ~/GIT/nanosecond/lamer
. ~/GIT/nanosecond/loot_drops
. ~/GIT/nanosecond/lsabcd
. ~/GIT/nanosecond/namechanger
. ~/GIT/nanosecond/networkinfo
. ~/GIT/nanosecond/owned
. ~/GIT/nanosecond/passwordmaker
. ~/GIT/nanosecond/pressanykey
. ~/GIT/nanosecond/progress-bar
. ~/GIT/nanosecond/psa
. ~/GIT/nanosecond/rebash
. ~/GIT/nanosecond/reconk
. ~/GIT/nanosecond/refont
. ~/GIT/nanosecond/rgb2cmyk
. ~/GIT/nanosecond/roll_character_function
. ~/GIT/nanosecond/roll_dice
. ~/GIT/nanosecond/slideshower
. ~/GIT/nanosecond/soundfix
. ~/GIT/nanosecond/subhead_figlet
. ~/GIT/nanosecond/system_backup_and_restore
. ~/GIT/nanosecond/title_figlet
. ~/GIT/nanosecond/toplag
. ~/GIT/nanosecond/unlockdpkg
. ~/GIT/nanosecond/wallchange
. ~/GIT/nanosecond/welcome
. ~/GIT/nanosecond/welcome1
. ~/GIT/nanosecond/welcomeontime
. ~/GIT/nanosecond/welcomeaptcount
. ~/GIT/nanosecond/zangmath
## LSandPS1 must be loaded after the other scripts, or PS1 colors will not display correctly.
. ~/GIT/nanosecond/LSandPS1
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
#########################
# The Terminal Greeting #
#########################
welcome
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi