summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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