Skip to content

Commit 91c9d4e

Browse files
author
Andreas Pataki
committed
Merge commit 'd955fbdeb729ed038ffa7af16c1cf82dd68aff1e'
* commit 'd955fbdeb729ed038ffa7af16c1cf82dd68aff1e': (31 commits) prompt: update powerlevel10k submodule to v1.3.0 use $TTY instead of $(tty); it's faster and more reliable prompt: update powerlevel10k submodule to v1.2.0 Updated prompt pure to version 1.11.0 prompt: update powerlevel10k submodule to v1.1 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
2 parents 4ca33f8 + d955fbd commit 91c9d4e

File tree

20 files changed

+52
-34
lines changed

20 files changed

+52
-34
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/directory/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Options
1212
- `PUSHD_SILENT` does not print the directory stack after `pushd` or `popd`.
1313
- `PUSHD_TO_HOME` pushes to the home directory when no argument is given.
1414
- `CDABLE_VARS` changes directory to a path stored in a variable.
15-
- `AUTO_NAME_DIRS` auto adds variable-stored paths to `~` list.
1615
- `MULTIOS` writes to multiple descriptors.
1716
- `EXTENDED_GLOB` uses extended globbing syntax.
1817
- `CLOBBER` does not overwrite existing files with `>` and `>>`. Use `>!` and

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/gpg/init.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [[ -z "$GPG_AGENT_INFO" && ! -S "${GNUPGHOME:-$HOME/.gnupg}/S.gpg-agent" ]];
2626
fi
2727

2828
# Inform gpg-agent of the current TTY for user prompts.
29-
export GPG_TTY="$(tty)"
29+
export GPG_TTY=$TTY
3030

3131
# Integrate with the SSH module.
3232
if grep '^enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then

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/history/init.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ setopt HIST_BEEP # Beep when accessing non-existent history.
2626
# Variables
2727
#
2828

29-
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.
29+
HISTFILE="${HISTFILE:-${ZDOTDIR:-$HOME}/.zhistory}" # The path to the history file.
3030
HISTSIZE=10000 # The maximum number of events to save in the internal history.
3131
SAVEHIST=10000 # The maximum number of events to save in the history file.
3232

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'

modules/node/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ nvm
1010
[nvm][5] allows for managing multiple, isolated Node.js installations in the
1111
home directory.
1212

13+
This will be loaded automatically if nvm is installed in `$NVM_DIR`,
14+
`~/.nvm`, or nvm is installed with homebrew.
15+
1316
nodenv
1417
------
1518

1619
[nodenv][6] does one thing well. nodenv is concerned solely with switching
1720
Node versions. It's simple and predictable, Just Works, and is rock solid in
1821
production. nodenv is forked from the popular [rbenv][7].
1922

23+
This will be loaded automatically if nodenv is installed in `$NODENV_ROOT`,
24+
`~/.nodenv`, or `nodenv` is on the path.
25+
2026
Functions
2127
---------
2228

0 commit comments

Comments
 (0)