about summary refs log tree commit diff stats
path: root/wikipages/unixprotips.wiki
diff options
context:
space:
mode:
Diffstat (limited to 'wikipages/unixprotips.wiki')
-rw-r--r--wikipages/unixprotips.wiki24
1 files changed, 24 insertions, 0 deletions
diff --git a/wikipages/unixprotips.wiki b/wikipages/unixprotips.wiki
new file mode 100644
index 0000000..81e8972
--- /dev/null
+++ b/wikipages/unixprotips.wiki
@@ -0,0 +1,24 @@
+<h2>UNIX ProTips</h2>
+<p>I realized today I wasn't getting mail notifications, and I hadn't
+set them up on this shell. So here are some things I do on my
+local machine that work here:</p>
+<p>To get the shell to tell you when you have new mail, after command
+executions, add this to your <code>.profile</code></p>
+
+<p><code>export MAILCHECK=0</code></p>
+
+<p>And, if you want, you can have a persistent notification when you
+have un-incorporated mail, or more specifically, when your
+<code>/var/mail/&lt;username&gt;</code> isn't empty.</p>
+
+<p><code>PS1="\$([-s /var/mail/`whoami` ] && echo '* ')$PS1"</code></p>
+
+<p>This works in /bin/ksh, I can't speak for other shells.</p>
+
+<p>If anybody else has some quick tips they would like to share, I
+encorage them to edit this page.</p>
+
+<p>Happy Unixing!</p>
+<p>~xvetrd</p>
+
+<a href="/wiki">Back to Wiki</a>
Kartik Agaram <vc@akkartik.com> 2019-09-14 16:40:51 -0700 5656' href='/akkartik/mu/commit/kernel.soso/process.h?h=hlt&id=67de9b02956419644f570f7e47ecd9940af024b3'>67de9b02 ^
46bb1d31 ^

67de9b02 ^
46bb1d31 ^






67de9b02 ^
46bb1d31 ^




























67de9b02 ^
46bb1d31 ^



























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