From e2fc5e9435bbf064484f02f327edf7c704acec8b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 7 Dec 2015 00:38:39 -0500 Subject: SunOS stuff --- .config/bash/rc.d/01_sun_terminal.sh | 4 ++++ .config/dir_colors | 1 + .config/login.d/00_quota.sh | 9 +++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .config/bash/rc.d/01_sun_terminal.sh 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 -- cgit v1.2.3