Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
5f38a537
"vscode:/vscode.git/clone" did not exist on "1e9084c3c77b5b9e95c2d75cb08f88078853bd6d"
Commit
5f38a537
authored
Sep 16, 2014
by
Moinak Ghosh
Browse files
Update Solaris changes to use OSTYPE and zsh datetime module.
parent
5e328e3a
Changes
4
Show whitespace changes
Inline
Side-by-side
lib/completion.zsh
View file @
5f38a537
...
...
@@ -25,7 +25,7 @@ bindkey -M menuselect '^o' accept-and-infer-next-history
zstyle
':completion:*:*:*:*:*'
menu
select
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
zstyle
':completion:*:*:*:*:processes'
command
"ps -u
`
whoami
`
-o pid,user,comm"
else
...
...
oh-my-zsh.sh
View file @
5f38a537
PLAT
=
`
uname
-s
`
# Check for updates on initial load...
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
...
...
plugins/colored-man/colored-man.plugin.zsh
View file @
5f38a537
if
[
"
$
{
PLAT
}
"
=
"SunOS
"
]
if
[
"
$
OSTYPE
[0,7]"
=
"solaris
"
]
then
if
[
!
-x
${
HOME
}
/bin/nroff
]
then
...
...
tools/check_for_upgrade.sh
View file @
5f38a537
#!/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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment