From 004a01a0056645937f357c5f6c9e21aca48b92e2 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Wed, 11 Dec 2019 23:55:18 +0100 Subject: [PATCH] fix shell scripts --- install.conf.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/install.conf.yaml b/install.conf.yaml index 4f75000..85f09fb 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -18,13 +18,23 @@ - shell: # install ohmyzsh - - sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + - + command: 'if [ ! -d ~/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"; fi' + stdin: false + stdout: true + description: "Install ohmyzsh:" + quiet: false # install vim plug for vim - - curl -fLo vim/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + - [curl -fLo vim/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim, "Install vim-plug for vim:"] # install vim plug for nvim - - curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + - [curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim, "Install vim-plug for nvim:"] # install vim plugins - - vim +PlugInstall +qall + - + command: vim +PlugInstall +qall + stdin: true + stdout: true + description: "Install vim plugins! Hit enter once if stuck:" + quiet: false # do this last to override generated .zshrc - link: