From e958c65101b5f6c8ab55e32666460f0a40f96af7 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 3 May 2021 02:21:39 +0200 Subject: [PATCH] zshrc: autoinstall ohmyzsh when not present * useful for new machines --- zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 441190f..95b29e8 100644 --- a/zshrc +++ b/zshrc @@ -1,4 +1,7 @@ -# If you come from bash you might have to change your $PATH. +[ ! -d ~/.oh-my-zsh ] && sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" + + export ZSH_CACHE_DIR="$ZSH/cache" + source ~/.zplug/init.zsh zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme zplug "zsh-users/zsh-autosuggestions", defer:2