From 2eb734c9121ca8f6b5994c320e24e42f27753213 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Mon, 10 Sep 2018 15:04:10 +0200 Subject: zsh minor changes --- home/.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/.zshrc b/home/.zshrc index e5dd18a..e2dc621 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -2,7 +2,7 @@ # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. -export ZSH=${HOME}/.oh-my-zsh +export ZSH="${HOME}/.oh-my-zsh" # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded. @@ -67,6 +67,10 @@ plugins=( [ -d $ZSH ] && source $ZSH/oh-my-zsh.sh +# Imported Theme +if [ "$USER" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi +PROMPT='%{$fg[green]%}[%D{%T}]%{$reset_color%} %{$fg_no_bold[cyan]%}%n %{${fg_bold[blue]}%}::%{$reset_color%} %{$fg[yellow]%}%m%{$reset_color%} %{$fg_no_bold[magenta]%} ➜ %{$reset_color%} %{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} ' + # User configuration # export MANPATH="/usr/local/man:$MANPATH" -- cgit v1.2.3