1
1

added prezto compatibility

This commit is contained in:
david 2020-11-16 23:31:15 +01:00
parent 22d0f239f8
commit 5152ea1875
3 changed files with 10 additions and 17 deletions

View File

@ -1,20 +1,3 @@
# zsh-david
My personal ZSH plugin with custom aliases and functions. It might not be very useful for you.
## Installation
Oneliner to install the plugin to $ZSH_CUSTOM
```
curl https//socialg.it/xyz | bash install.sh
```
Oneliner to (re)install zsh, oh-my-zsh, pure and custom plugins
```
curl https://socialg.it/euditarel | bash install.sh
```
## Usage
here goes documentation for scripts..

9
init.zsh Normal file
View File

@ -0,0 +1,9 @@
#
# Integrates zsh-david into Prezto.
#
# Authors:
# david@socialnerds.org
#
# Source module files.
source "${0:h}/zsh-david.plugin.zsh" || return 1

View File

@ -11,6 +11,7 @@ alias zz='source $HOME/.zshrc'
alias {update_zsh,zu}='echo "LAST_EPOCH=0" > $ZSH_CACHE_DIR/.zsh-custom-update > $ZSH_CACHE_DIR/.zsh-update; source $HOME/.zshrc'
alias vz='vim $HOME/.zshrc && source $HOME/.zshrc'
alias vp='vim $ZSH_CUSTOM/plugins/zsh-david/zsh-david.plugin.zsh && source $HOME/.zshrc; echo "if you made changes please push to master with vu"'
alias vd='vim $HOME/.zprezto-contrib/zsh-david/zsh-david.plugin.zsh'
alias vu='cd $ZSH_CUSTOM/plugins/zsh-david; git commit -am "plugin update" && git push origin master; cd -'
alias vi='vim'
alias v='vim'