mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 19:48:00 +00:00
Merge upstream/master
This commit is contained in:
commit
fca913eded
@ -34,10 +34,10 @@ fi
|
|||||||
# here, we check for dropin/multi-threaded replacements
|
# here, we check for dropin/multi-threaded replacements
|
||||||
# this should eventually be moved to modules/archive/init.zsh
|
# this should eventually be moved to modules/archive/init.zsh
|
||||||
# as a global alias
|
# as a global alias
|
||||||
if (( $+commands[pigz] )); then
|
if (( $+commands[unpigz] )); then
|
||||||
_gzip_bin='pigz'
|
_gzip_bin='unpigz'
|
||||||
else
|
else
|
||||||
_gzip_bin='gzip'
|
_gzip_bin='gunzip'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $+commands[pixz] )); then
|
if (( $+commands[pixz] )); then
|
||||||
@ -46,12 +46,12 @@ else
|
|||||||
_xz_bin='xz'
|
_xz_bin='xz'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $+commands[lbzip2] )); then
|
if (( $+commands[lbunzip2] )); then
|
||||||
_bzip2_bin='lbzip2'
|
_bzip2_bin='lbunzip2'
|
||||||
elif (( $+commands[pbzip2] )); then
|
elif (( $+commands[pbunzip2] )); then
|
||||||
_bzip2_bin='pbzip2'
|
_bzip2_bin='pbunzip2'
|
||||||
else
|
else
|
||||||
_bzip2_bin='bzip2'
|
_bzip2_bin='bunzip2'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_zstd_bin='zstd'
|
_zstd_bin='zstd'
|
||||||
|
@ -417,6 +417,11 @@ function git-info {
|
|||||||
if (( dirty > 0 )); then
|
if (( dirty > 0 )); then
|
||||||
zstyle -s ':prezto:module:git:info:dirty' format 'dirty_format'
|
zstyle -s ':prezto:module:git:info:dirty' format 'dirty_format'
|
||||||
zformat -f dirty_formatted "$dirty_format" "D:$dirty"
|
zformat -f dirty_formatted "$dirty_format" "D:$dirty"
|
||||||
|
# Overwrite branch format to use dirty-branch format
|
||||||
|
zstyle -s ':prezto:module:git:info:dirty-branch' format 'branch_format'
|
||||||
|
if [[ -n "$branch" && -n "$branch_format" ]]; then
|
||||||
|
zformat -f branch_formatted "$branch_format" "b:$branch"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
zstyle -s ':prezto:module:git:info:clean' format 'clean_formatted'
|
zstyle -s ':prezto:module:git:info:clean' format 'clean_formatted'
|
||||||
fi
|
fi
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# Browser
|
# Browser
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ -z "$BROWSER" && "$OSTYPE" == darwin* ]]; then
|
||||||
export BROWSER='open'
|
export BROWSER='open'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -17,9 +17,15 @@ fi
|
|||||||
# Editors
|
# Editors
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [[ -z "$EDITOR" ]]; then
|
||||||
export EDITOR='nano'
|
export EDITOR='nano'
|
||||||
|
fi
|
||||||
|
if [[ -z "$VISUAL" ]]; then
|
||||||
export VISUAL='nano'
|
export VISUAL='nano'
|
||||||
|
fi
|
||||||
|
if [[ -z "$PAGER" ]]; then
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Language
|
# Language
|
||||||
@ -54,10 +60,12 @@ path=(
|
|||||||
# Set the default Less options.
|
# Set the default Less options.
|
||||||
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
|
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
|
||||||
# Remove -X to enable it.
|
# Remove -X to enable it.
|
||||||
|
if [[ -z "$LESS" ]]; then
|
||||||
export LESS='-g -i -M -R -S -w -X -z-4'
|
export LESS='-g -i -M -R -S -w -X -z-4'
|
||||||
|
fi
|
||||||
|
|
||||||
# Set the Less input preprocessor.
|
# Set the Less input preprocessor.
|
||||||
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
|
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
|
||||||
if (( $#commands[(i)lesspipe(|.sh)] )); then
|
if [[ -z "$LESSOPEN" ]] && (( $#commands[(i)lesspipe(|.sh)] )); then
|
||||||
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
|
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user