From 31c973af6a2180af008f765c5cf04192c4620a15 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 14 Jun 2016 19:41:21 +0200 Subject: [PATCH] Different promt for root via ssh. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2056740..c02c036 100644 --- a/install.sh +++ b/install.sh @@ -18,7 +18,9 @@ git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/autosugges cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc sed -i -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' ~/.zshrc sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc -echo 'export DEFAULT_USER=$LOGNAME' >> ~/.zshrc +if [ ! `whoami` = "root" ]; then + echo 'export DEFAULT_USER=$LOGNAME' >> ~/.zshrc +fi echo "zstyle ':vcs_info:*' enable git svn" >> ~/.zshrc echo "[ -e ~/.zsh/autosuggestions/zsh-autosuggestions.zsh ] && source ~/.zsh/autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc