Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
8b37f817
Commit
8b37f817
authored
Jan 16, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(lib): use -N syntax in `head` and `tail` to support Solaris (#6391)
Closes #6391 Co-authored-by:
Sergey Mashkov
<
cy6erGn0m@gmail.com
>
parent
47c04d92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
functions.zsh
lib/functions.zsh
+1
-1
git.zsh
lib/git.zsh
+1
-1
No files found.
lib/functions.zsh
View file @
8b37f817
function
zsh_stats
()
{
fc
-l
1
\
|
awk
'{ CMD[$2]++; count++; } END { for (a in CMD) print CMD[a] " " CMD[a]*100/count "% " a }'
\
|
grep
-v
"./"
|
sort
-nr
|
head
-
n
20
| column
-c3
-s
" "
-t
|
nl
|
grep
-v
"./"
|
sort
-nr
|
head
-20
| column
-c3
-s
" "
-t
|
nl
}
function
uninstall_oh_my_zsh
()
{
...
...
lib/git.zsh
View file @
8b37f817
...
...
@@ -51,7 +51,7 @@ function parse_git_dirty() {
FLAGS+
=
"--ignore-submodules=
${
GIT_STATUS_IGNORE_SUBMODULES
:-
dirty
}
"
;;
esac
STATUS
=
$(
__git_prompt_git status
${
FLAGS
}
2> /dev/null |
tail
-
n
1
)
STATUS
=
$(
__git_prompt_git status
${
FLAGS
}
2> /dev/null |
tail
-1
)
fi
if
[[
-n
$STATUS
]]
;
then
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
...
...
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