dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f0c6fe1e703bb915a526533d246d302926846e11
parent 723380721648722f2d6a49afe50c1391eb096196
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 12 Mar 2019 10:40:10 +0100

Fix zgen init

Diffstat:
Mlinks/.zshrc | 30+++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -32,7 +32,7 @@ zstyle :chpwd:* recent-dirs-pushd true zle -N edit-command-line zle -N select-bracketed zle -N select-quoted -zle -N fzf-history-widget +#zle -N fzf-history-widget zle -N history-substring-search-up zle -N history-substring-search-down @@ -46,7 +46,7 @@ set -o vi bindkey -v bindkey jk vi-cmd-mode bindkey -M vicmd v edit-command-line -bindkey -a ? fzf-history-widget +#bindkey -a ? fzf-history-widget bindkey -a k history-substring-search-up bindkey -a j history-substring-search-down bindkey '^R' history-incremental-search-backward @@ -197,22 +197,26 @@ zle -N zle-keymap-select #### PLUGINS -source "${HOME}/code/zgen/zgen.zsh" -# if the init script doesn't exist +if [ -f "$HOME/.zgen/zgen.zsh" ]; then + source "${HOME}/.zgen/zgen.zsh" +else + git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen" + source "${HOME}/.zgen/zgen.zsh" +fi if ! zgen saved; then +echo "Creating a zgen save" - # specify plugins here - zgen load https://github.com/junegunn/fzf - zgen load https://github.com/zsh-users/zsh-autosuggestions - zgen load https://github.com/zsh-users/zsh-completions - zgen load https://github.com/zsh-users/zsh-syntax-highlighting - zgen load https://github.com/zsh-users/zsh-history-substring-search + # plugins + zgen load zsh-users/zsh-autosuggestions + zgen load zsh-users/zsh-completions src + zgen load zsh-users/zsh-syntax-highlighting + zgen load zsh-users/zsh-history-substring-search + zgen load junegunn/fzf - # generate the init script from plugins above - zgen save + # save all to init script + zgen save fi - #### EXTRA COMMANDS # start ssh-agent