Add alias-tips plugin
This commit is contained in:
parent
f2a826e963
commit
b31a5cc3be
4 changed files with 65 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -16,3 +16,6 @@
|
|||
[submodule "modules/prompt/functions/pure"]
|
||||
path = modules/prompt/external/pure
|
||||
url = https://github.com/sindresorhus/pure.git
|
||||
[submodule "modules/alias-tips/external"]
|
||||
path = modules/alias-tips/external
|
||||
url = https://github.com/jedahan/alias-tips
|
||||
|
|
40
modules/alias-tips/README.md
Normal file
40
modules/alias-tips/README.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
Alias Tips
|
||||
==========
|
||||
|
||||
Integrates [alias-tips][1] into Prezto, which reminds you
|
||||
whenever the command you just ran has an defined alias.
|
||||
|
||||
Settings
|
||||
--------
|
||||
|
||||
### Text
|
||||
|
||||
To change the tip text prefix, add the following line to *zpreztorc*:
|
||||
|
||||
zstyle ':prezto:module:alias-tips' text '💡 '
|
||||
|
||||
To exclude certain commands
|
||||
|
||||
zstyle ':prezto:module:alias-tips' exclude '_ c'
|
||||
|
||||
To automatically expand the alias
|
||||
|
||||
zstyle ':prezto:module:alias-tips' expand 'yes'
|
||||
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
New features and bug fixes should be submitted to the
|
||||
[alias-tips][1] project according to its rules and
|
||||
regulations. This module will be synchronized against it.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
*The authors of this module should be contacted via the [issue tracker][2].*
|
||||
|
||||
- [Jonathan Dahan](https://github.com/jedahan)
|
||||
|
||||
[1]: https://github.com/djui/alias-tips
|
||||
[2]: https://github.com/sorin-ionescu/prezto/issues
|
1
modules/alias-tips/external
Submodule
1
modules/alias-tips/external
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit d753920778d09571d4b20f7e35e5a23af79f848c
|
21
modules/alias-tips/init.zsh
Normal file
21
modules/alias-tips/init.zsh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Integrates alias-tips into Prezto.
|
||||
#
|
||||
# Authors:
|
||||
# Jonathan Dhan <hi@jonathan.is>
|
||||
#
|
||||
|
||||
# Source module files.
|
||||
|
||||
# Options
|
||||
zstyle -s ':prezto:module:alias-tips' text 'ZSH_PLUGINS_ALIAS_TIPS_TEXT' && \
|
||||
export 'ZSH_PLUGINS_ALIAS_TIPS_TEXT'
|
||||
|
||||
zstyle -s ':prezto:module:alias-tips' excludes 'ZSH_PLUGINS_ALIAS_TIPS_EXCLUDES' && \
|
||||
export ZSH_PLUGINS_ALIAS_TIPS_EXCLUDES
|
||||
|
||||
if zstyle -t ':prezto:module:alias-tips' expand; then
|
||||
export ZSH_PLUGINS_ALIAS_TIPS_EXPAND=1
|
||||
fi
|
||||
|
||||
source "${0:h}/external/alias-tips.plugin.zsh" || return 1
|
Loading…
Add table
Reference in a new issue