mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-21 21:30:09 +00:00
Update Solaris changes to use OSTYPE and zsh datetime module.
This commit is contained in:
parent
5e328e3a9c
commit
5f38a537ce
4 changed files with 6 additions and 11 deletions
|
@ -25,7 +25,7 @@ bindkey -M menuselect '^o' accept-and-infer-next-history
|
||||||
|
|
||||||
zstyle ':completion:*:*:*:*:*' menu select
|
zstyle ':completion:*:*:*:*:*' menu select
|
||||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
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
|
then
|
||||||
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm"
|
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm"
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
PLAT=`uname -s`
|
|
||||||
# Check for updates on initial load...
|
# Check for updates on initial load...
|
||||||
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
|
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
|
/usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if [ "${PLAT}" = "SunOS" ]
|
if [ "$OSTYPE[0,7]" = "solaris" ]
|
||||||
then
|
then
|
||||||
if [ ! -x ${HOME}/bin/nroff ]
|
if [ ! -x ${HOME}/bin/nroff ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
zmodload zsh/datetime
|
||||||
|
|
||||||
PLAT=`uname -s`
|
|
||||||
function _current_epoch() {
|
function _current_epoch() {
|
||||||
if [ "$PLAT" = "SunOS" ]
|
echo $EPOCHSECONDS
|
||||||
then
|
|
||||||
echo $(($(perl -e 'print time') / 60 / 60 / 24))
|
|
||||||
else
|
|
||||||
echo $(($(date +%s) / 60 / 60 / 24))
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _update_zsh_update() {
|
function _update_zsh_update() {
|
||||||
|
|
Loading…
Reference in a new issue