mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 06:58:01 +00:00
Merge upstream/master
This commit is contained in:
commit
9b2744cfdf
@ -11,7 +11,7 @@ if (( ! $+commands[ghc] )); then
|
||||
fi
|
||||
|
||||
# Prepend Cabal per user directories to PATH.
|
||||
if [[ "$OSTYPE" == darwin* && -d $HOME/Library/Haskell ]]; then
|
||||
if is-darwin && [[ -d $HOME/Library/Haskell ]]; then
|
||||
path=($HOME/Library/Haskell/bin(/N) $path)
|
||||
else
|
||||
path=($HOME/.cabal/bin(/N) $path)
|
||||
|
@ -29,3 +29,23 @@ function coalesce {
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
# is true on MacOS Darwin
|
||||
function is-darwin {
|
||||
[[ "$OSTYPE" == darwin* ]]
|
||||
}
|
||||
|
||||
# is true on Linux's
|
||||
function is-linux {
|
||||
[[ "$OSTYPE" == linux* ]]
|
||||
}
|
||||
|
||||
# is true on BSD's
|
||||
function is-bsd {
|
||||
[[ "$OSTYPE" == *bsd* ]]
|
||||
}
|
||||
|
||||
# is true on Cygwin (Windows)
|
||||
function is-cygwin {
|
||||
[[ "$OSTYPE" == cygwin* ]]
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if [[ "$OSTYPE" != (darwin|linux)* ]]; then
|
||||
if ! is-darwin || ! is-linux; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if [[ "$OSTYPE" != darwin* ]]; then
|
||||
if ! is-darwin; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if [[ "$OSTYPE" != darwin* ]]; then
|
||||
if ! is-darwin; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
@ -37,7 +37,7 @@ fi
|
||||
# Local Module Installation
|
||||
#
|
||||
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
if is-darwin; then
|
||||
# Perl is slow; cache its output.
|
||||
cache_file="${TMPDIR:-/tmp}/prezto-perl-cache.$UID.zsh"
|
||||
perl_path="$HOME/Library/Perl/5.12"
|
||||
|
2
modules/prompt/external/powerlevel10k
vendored
2
modules/prompt/external/powerlevel10k
vendored
@ -1 +1 @@
|
||||
Subproject commit 7306efb94ba739f714972038ad74c48d2bebfdd6
|
||||
Subproject commit 6a0e7523b232d02854008405a3645031c848922b
|
@ -22,7 +22,7 @@ elif (( $+commands[pyenv] )); then
|
||||
else
|
||||
if [[ -n "$PYTHONUSERBASE" ]]; then
|
||||
path=($PYTHONUSERBASE/bin $path)
|
||||
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||
elif is-darwin; then
|
||||
path=($HOME/Library/Python/*/bin(N) $path)
|
||||
else
|
||||
# This is subject to change.
|
||||
|
@ -23,7 +23,7 @@ fi
|
||||
|
||||
# macOS and HFS+ Enhancements
|
||||
# https://bombich.com/kb/ccc5/credits
|
||||
if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then
|
||||
if is-darwin && grep -q 'file-flags' <(rsync --help 2>&1); then
|
||||
_rsync_cmd="${_rsync_cmd} --crtimes --fileflags --protect-decmpfs --force-change"
|
||||
fi
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 35c8690c0025ceef9584f64da86ced3a72ee32b6
|
||||
Subproject commit 932e29a0c75411cb618f02995b66c0a4a25699bc
|
@ -134,9 +134,9 @@ if zstyle -t ':prezto:module:utility:grep' color; then
|
||||
fi
|
||||
|
||||
# macOS Everywhere
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
if is-darwin; then
|
||||
alias o='open'
|
||||
elif [[ "$OSTYPE" == cygwin* ]]; then
|
||||
elif is-cygwin; then
|
||||
alias o='cygstart'
|
||||
alias pbcopy='tee > /dev/clipboard'
|
||||
alias pbpaste='cat /dev/clipboard'
|
||||
@ -166,7 +166,7 @@ fi
|
||||
alias df='df -kh'
|
||||
alias du='du -kh'
|
||||
|
||||
if [[ "$OSTYPE" == (darwin*|*bsd*) ]]; then
|
||||
if is-darwin || is-bsd; then
|
||||
alias topc='top -o cpu'
|
||||
alias topm='top -o vsize'
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user