mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
fixed colorize for OSX
exit -1 destroys a terminal, now returns -1 which doesn't return just a path, so awked out the last field
This commit is contained in:
parent
ee3a77b146
commit
e6483745a3
1 changed files with 3 additions and 3 deletions
|
|
@ -6,9 +6,9 @@
|
|||
alias colorize='colorize_via_pygmentize'
|
||||
|
||||
colorize_via_pygmentize() {
|
||||
if [ ! -x $(which pygmentize) ]; then
|
||||
if [ ! -x $(which pygmentize | awk ' { print $(NF) } ') ]; then
|
||||
echo package \'pygmentize\' is not installed!
|
||||
exit -1
|
||||
return -1
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
|
@ -25,4 +25,4 @@ colorize_via_pygmentize() {
|
|||
pygmentize -g "$FNAME"
|
||||
fi
|
||||
done
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue