Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
5f38a537
Commit
5f38a537
authored
Sep 16, 2014
by
Moinak Ghosh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Solaris changes to use OSTYPE and zsh datetime module.
parent
5e328e3a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
11 deletions
+6
-11
completion.zsh
lib/completion.zsh
+1
-1
oh-my-zsh.sh
oh-my-zsh.sh
+0
-1
colored-man.plugin.zsh
plugins/colored-man/colored-man.plugin.zsh
+1
-1
check_for_upgrade.sh
tools/check_for_upgrade.sh
+4
-8
No files found.
lib/completion.zsh
View file @
5f38a537
...
@@ -25,7 +25,7 @@ bindkey -M menuselect '^o' accept-and-infer-next-history
...
@@ -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
...
...
oh-my-zsh.sh
View file @
5f38a537
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
...
...
plugins/colored-man/colored-man.plugin.zsh
View file @
5f38a537
if
[
"
$
{
PLAT
}
"
=
"SunOS
"
]
if
[
"
$
OSTYPE
[0,7]"
=
"solaris
"
]
then
then
if
[
!
-x
${
HOME
}
/bin/nroff
]
if
[
!
-x
${
HOME
}
/bin/nroff
]
then
then
...
...
tools/check_for_upgrade.sh
View file @
5f38a537
#!/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
()
{
...
...
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