summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2015-12-07 00:38:39 -0500
committerLuke Shumaker <shumakl@purdue.edu>2015-12-07 00:38:39 -0500
commite2fc5e9435bbf064484f02f327edf7c704acec8b (patch)
treeed3e018f2574c9dc54a1591a7b78e65574b4a97d
parentee2bc4b2d622b29870574a511cdbd6d7674c272d (diff)
SunOS stuff
-rw-r--r--.config/bash/rc.d/01_sun_terminal.sh4
-rw-r--r--.config/dir_colors1
-rw-r--r--.config/login.d/00_quota.sh9
3 files changed, 12 insertions, 2 deletions
diff --git a/.config/bash/rc.d/01_sun_terminal.sh b/.config/bash/rc.d/01_sun_terminal.sh
new file mode 100644
index 0000000..f8c8726
--- /dev/null
+++ b/.config/bash/rc.d/01_sun_terminal.sh
@@ -0,0 +1,4 @@
+#!/hint/bash
+if [[ "$(uname)" = SunOS ]] && [[ "$TERM" = *color* ]]; then
+ export TERM=sun-color
+fi
diff --git a/.config/dir_colors b/.config/dir_colors
index 80484e8..83f8adc 100644
--- a/.config/dir_colors
+++ b/.config/dir_colors
@@ -1 +1,2 @@
+TERM sun-color
OTHER_WRITABLE 01;34;45
diff --git a/.config/login.d/00_quota.sh b/.config/login.d/00_quota.sh
index afe7211..2befc01 100644
--- a/.config/login.d/00_quota.sh
+++ b/.config/login.d/00_quota.sh
@@ -1,4 +1,9 @@
#!/hint/sh
-if { ! quota -s; } && [ -n "$DISPLAY" ]; then
- xmessage -center "$(quota -s)" &
+if [ "$(uname)" == SunOS ]; then
+ quota -v
+ cat -s /etc/motd
+else
+ if { ! quota -s; } && [ -n "$DISPLAY" ]; then
+ xmessage -center "$(quota -s)" &
+ fi
fi