Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Commit 3eb23fc

Browse files
committed
Merge branch 'master' of https://github.com/sorin-ionescu/prezto
* 'master' of https://github.com/sorin-ionescu/prezto: Update documentation environment: improve the TTY check (sorin-ionescu#1785) node: suppress node-info when nvm points system-wide node (sorin-ionescu#802) prompt: update powerlevel10k submodule to the latest commit (sorin-ionescu#1784) Allow module functions directory to be a symlink autosuggestions: update to v0.6.4 Support pmodule-allow-overrides feature (sorin-ionescu#1780) runcoms: don't raise an error in zlogin when stderr is not a TTY (sorin-ionescu#1775) environment: apply `stty -ixon` only to tty (sorin-ionescu#1771) Allow mapping Ctrl+S and Ctrl+Q shortcuts (sorin-ionescu#1750) prompt: update powerlevel10k submodule to the latest commit (sorin-ionescu#1768) prompt: update powerlevel10k submodule to the latest commit (sorin-ionescu#1761) prompt: update powerlevel10k submodule to the latest commit (sorin-ionescu#1757) homebrew: add alias `brewL` Remove documentation for obsolete `brewC` alias Init submodules when using zprezto-update (sorin-ionescu#1713) Remove alias for invalid `brew cleanup --force`
2 parents e097db3 + 66b9ea7 commit 3eb23fc

File tree

10 files changed

+25
-13
lines changed

10 files changed

+25
-13
lines changed

init.zsh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function zprezto-update {
4444
printf "There is an update available. Trying to pull.\n\n"
4545
if git pull --ff-only; then
4646
printf "Syncing submodules\n"
47-
git submodule update --recursive
47+
git submodule update --init --recursive
4848
return $?
4949
else
5050
cannot-fast-forward
@@ -98,18 +98,20 @@ function pmodload {
9898
else
9999
locations=(${pmodule_dirs:+${^pmodule_dirs}/$pmodule(-/FN)})
100100
if (( ${#locations} > 1 )); then
101-
print "$0: conflicting module locations: $locations"
102-
continue
101+
if ! zstyle -t ':prezto:load' pmodule-allow-overrides 'yes'; then
102+
print "$0: conflicting module locations: $locations"
103+
continue
104+
fi
103105
elif (( ${#locations} < 1 )); then
104106
print "$0: no such module: $pmodule"
105107
continue
106108
fi
107109

108110
# Grab the full path to this module
109-
pmodule_location=${locations[1]}
111+
pmodule_location=${locations[-1]}
110112

111113
# Add functions to $fpath.
112-
fpath=(${pmodule_location}/functions(/FN) $fpath)
114+
fpath=(${pmodule_location}/functions(-/FN) $fpath)
113115

114116
function {
115117
local pfunction

modules/editor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ Authors
106106

107107
- [Sorin Ionescu](https://github.com/sorin-ionescu)
108108

109-
[1]: https://github.com/sorin-ionescu/oh-my-zsh/issues
109+
[1]: https://github.com/sorin-ionescu/prezto/issues

modules/environment/init.zsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ setopt INTERACTIVE_COMMENTS # Enable comments in interactive shell.
3838
setopt RC_QUOTES # Allow 'Henry''s Garage' instead of 'Henry'\''s Garage'.
3939
unsetopt MAIL_WARNING # Don't print a warning message if a mail file has been accessed.
4040

41+
# Allow mapping Ctrl+S and Ctrl+Q shortcuts
42+
[[ -r ${TTY:-} && -w ${TTY:-} && $+commands[stty] == 1 ]] && stty -ixon <$TTY >$TTY
43+
4144
#
4245
# Jobs
4346
#

modules/history/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ History
33

44
Sets [history][1] options and defines history aliases.
55

6+
**Note:** If you are migrating from oh-my-zsh and want to keep your history, you
7+
will either need to set HISTFILE manually to `$HOME/.zsh_history` or rename
8+
`~/.zsh_history` to ~/.zhistory`.
9+
610
Options
711
-------
812

modules/homebrew/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Aliases
1818
### Homebrew
1919

2020
- `brewc` cleans outdated brews and their cached archives.
21-
- `brewC` cleans outdated brews, including keg-only, and their cached archives.
2221
- `brewi` installs a formula.
22+
- `brewL` lists installed formulae that are not dependencies of another installed formula.
2323
- `brewl` lists installed formulae.
2424
- `brewo` lists brews which have an update available.
2525
- `brews` searches for a formula.

modules/homebrew/init.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
# Variables
1515
#
1616

17-
# Load standard Homebrew shellenv into the shell session.
17+
# Load standard Homebrew shellenv into the shell session.
1818
# Load 'HOMEBREW_' prefixed variables only. Avoid loading 'PATH' related
1919
# variables as they are already handled in standard zsh configuration.
2020
if (( $+commands[brew] )); then
@@ -27,8 +27,8 @@ fi
2727

2828
# Homebrew
2929
alias brewc='brew cleanup'
30-
alias brewC='brew cleanup --force'
3130
alias brewi='brew install'
31+
alias brewL='brew leaves'
3232
alias brewl='brew list'
3333
alias brewo='brew outdated'
3434
alias brews='brew search'

runcoms/zlogin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
} &!
1616

1717
# Execute code only if STDERR is bound to a TTY.
18-
[[ -o INTERACTIVE && -t 2 ]] && {
18+
if [[ -o INTERACTIVE && -t 2 ]]; then
1919

2020
# Print a random, hopefully interesting, adage.
2121
if (( $+commands[fortune] )); then
2222
fortune -s
2323
print
2424
fi
2525

26-
} >&2
26+
fi >&2

runcoms/zpreztorc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ zstyle ':prezto:*:*' color 'yes'
1818
# Add additional directories to load prezto modules from
1919
# zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
2020

21+
# Allow module overrides when pmodule-dirs causes module name collisions
22+
# zstyle ':prezto:load' pmodule-allow-overrides 'yes'
23+
2124
# Set the Zsh modules to load (man zshmodules).
2225
# zstyle ':prezto:load' zmodule 'attr' 'stat'
2326

0 commit comments

Comments
 (0)