mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-15 16:56:45 +08:00
Solaris portability tweaks.
This commit is contained in:
1 parent
5728a5608d
commit
5e328e3a9c
4 files changed
+35
-2
No files matched your search
@@ -1,7 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
PLAT=`uname -s`
|
||||
function _current_epoch() {
|
||||
echo $(($(date +%s) / 60 / 60 / 24))
|
||||
if [ "$PLAT" = "SunOS" ]
|
||||
then
|
||||
echo $(($(perl -e 'print time') / 60 / 60 / 24))
|
||||
else
|
||||
echo $(($(date +%s) / 60 / 60 / 24))
|
||||
fi
|
||||
}
|
||||
|
||||
function _update_zsh_update() {
|
||||
|
||||
Reference in new issue
Block a user