1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

Update Solaris changes to use OSTYPE and zsh datetime module.

This commit is contained in:
Moinak Ghosh
2014-09-16 22:29:52 +05:30
parent 5e328e3a9c
commit 5f38a537ce
4 changed files with 6 additions and 11 deletions

View File

@@ -1,13 +1,9 @@
#!/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() {