Commit 5f38a537 authored by Moinak Ghosh's avatar Moinak Ghosh
Browse files

Update Solaris changes to use OSTYPE and zsh datetime module.

parent 5e328e3a
......@@ -25,7 +25,7 @@ bindkey -M menuselect '^o' accept-and-infer-next-history
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
if [ "$PLAT" = "SunOS" ]
if [ "$OSTYPE[0,7]" = "solaris" ]
then
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm"
else
......
PLAT=`uname -s`
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
/usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
......
if [ "${PLAT}" = "SunOS" ]
if [ "$OSTYPE[0,7]" = "solaris" ]
then
if [ ! -x ${HOME}/bin/nroff ]
then
......
#!/bin/sh
#!/usr/bin/env zsh
zmodload zsh/datetime
PLAT=`uname -s`
function _current_epoch() {
if [ "$PLAT" = "SunOS" ]
then
echo $(($(perl -e 'print time') / 60 / 60 / 24))
else
echo $(($(date +%s) / 60 / 60 / 24))
fi
echo $EPOCHSECONDS
}
function _update_zsh_update() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment