about summary refs log tree commit diff stats
path: root/etc/ksh/kshrc
diff options
context:
space:
mode:
authorensa <@>2023-08-06 16:37:30 -0700
committerensa <@>2023-08-06 16:37:30 -0700
commit1ddfd9ba56511a4136dfe83e1f581ac52c79c0e9 (patch)
tree9940920dca61ab0ce2fd2dfe54d58f1c118313ed /etc/ksh/kshrc
parent75ee668954833ab6ba9287ed5eb16a9957edcac2 (diff)
downloadcfg-1ddfd9ba56511a4136dfe83e1f581ac52c79c0e9.tar.gz
these commit titles don't have meaning anymore HEAD master
DEPENDENCIES.md:
	nixed. good riddance.
	i have no reason to think it was helpful and was a nightmare to update
bin/
	fcard: some tab changes. -z still broken
	fl: removed unnecessary lines from before flc's existence.
	flc: inherited IFS because of dmenu crap. tr -d to prevent pasting newlines.
	op: changed text/* to spawn a terminal. often op is invoked outside the terminal.
	shenv: looks at HOME_ETC for uniformity
etc/
	X11/xprofile: line for updating sfeed feeds
	aliasrc: colorizing lr
	ksh/kshrc:
		MANPATH extended to accommodate for user-specific packages, e.g python
		call_it_a_day updates packages and cleans the system, tracks how long that took
	mpv/mpv.conf: self-explanatory
	newsboat: not used anymore
	sfeedrc: new rss config, needs feed urls
	shrc: making room for sfeed, self-explanatory
	yt-dlp:
		mostly self-explanatory renaming
		new config for playlists, separate because you seemingly can't use directory markers in text substitution
Diffstat (limited to 'etc/ksh/kshrc')
-rw-r--r--etc/ksh/kshrc11
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/ksh/kshrc b/etc/ksh/kshrc
index 28b3c0c..3ab924b 100644
--- a/etc/ksh/kshrc
+++ b/etc/ksh/kshrc
@@ -22,9 +22,9 @@ export PF_INFO="ascii title os host shell editor wm pkgs palette"
 # fix manpath so local man pages work
 # crude *bsd detection
 if [[ -d /usr/X11R6 ]]; then
-export MANPATH="/usr/share/man:/usr/X11R6/man:/usr/local/man:$HOME_DATA/man"
+export MANPATH="/usr/share/man:/usr/X11R6/man:/usr/local/man:$HOME_DATA/man:$HOME_EXT_DATA/man"
 else
-export MANPATH="/usr/share/man:/usr/local/share/man:$HOME_DATA/man"
+export MANPATH="/usr/share/man:/usr/local/share/man:$HOME_DATA/man:$HOME_EXT_DATA/man"
 fi
 set -o vi
 
@@ -34,3 +34,10 @@ set -o vi
 [[ -f "$HOME_ETC/aliasrc" ]] && . "$HOME_ETC/aliasrc"
 [[ -f "$KSHCONFIG/completions.ksh" ]] && . "$KSHCONFIG/completions.ksh"
 [[ -f "$KSHCONFIG/prompt.ksh" ]] && . "$KSHCONFIG/prompt.ksh"
+
+call_it_a_day() {
+	date +%s > /tmp/start-update.time
+	doas sh -c 'pkg_add -Iu; pkg_delete -Ia'
+	echo "update took $(($(date +%s)-$(< /tmp/start-update.time))) seconds" > $HOME_LOG/call-it-a-day.log
+	doas poweroff
+}
010vm?h=main&id=a4ef18b194a24710847be59554e51a1fd618228d'>a4ef18b1 ^
dcf7436e ^






5574fbaf ^



dcf7436e ^
a4ef18b1 ^
dcf7436e ^
a4ef18b1 ^
dcf7436e ^
dcf7436e ^
6cc46216 ^
dcf7436e ^










36594a43 ^

dcf7436e ^

3c435756 ^
dcf7436e ^











36594a43 ^



a4ef18b1 ^
36594a43 ^
3c435756 ^
f02842a9 ^
36594a43 ^
f02842a9 ^

b291f85b ^

3c435756 ^
36594a43 ^


dcf7436e ^


e371e823 ^
b291f85b ^



dcf7436e ^
b291f85b ^
dcf7436e ^

fe67d47a ^

e371e823 ^
dcf7436e ^

42b31beb ^


36594a43 ^






f7051fad ^
42b31beb ^
f7051fad ^

c1a50c82 ^
42b31beb ^
f7051fad ^
cae5461b ^
c1a50c82 ^
36594a43 ^
36594a43 ^


dcf7436e ^

3c435756 ^

dcf7436e ^
3c435756 ^
42b31beb ^

dcf7436e ^
5574fbaf ^
3ba63579 ^
dcf7436e ^
0060093e ^

a4ef18b1 ^








a4ef18b1 ^

0060093e ^
dcf7436e ^
3ba63579 ^
6cc46216 ^

dcf7436e ^

a4ef18b1 ^
f02842a9 ^



0060093e ^
a4ef18b1 ^
0060093e ^
a4ef18b1 ^



0060093e ^
a4ef18b1 ^

0060093e ^


dcf7436e ^







0060093e ^
dcf7436e ^





979403c6 ^





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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202