mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-17 22:56:45 +08:00
Update Solaris changes to use OSTYPE and zsh datetime module.
This commit is contained in:
1 parent
5e328e3a9c
commit
5f38a537ce
4 files changed
+6
-11
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user