mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Solaris portability tweaks.
This commit is contained in:
parent
5728a5608d
commit
5e328e3a9c
4 changed files with 35 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue