From 14f87f9213b42d574dafd2f3f028c66d42aa0230 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 15 Dec 2016 17:48:17 +0100 Subject: [PATCH] added different color for root --- zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index ef5b9c0..5a97a84 100644 --- a/zshrc +++ b/zshrc @@ -11,8 +11,12 @@ COLORED_STDERR_FDS=2, export LD_PRELOAD COLORED_STDERR_FDS ### PROMT ### +MAIN_PROMT_COLOR="green" +if [[ $USER == "root" ]] + MAIN_PROMT_COLOR="red" +fi setopt promptsubst -CMD_START=$'%F{green}--->%f ' +CMD_START=$'%F{MAIN_PROMT_COLOR}--->%f ' PS1=$'%F{yellow}%m%f%F{red}:%f%F{cyan}%~%f\n'$CMD_START #promt PS1=%F{green}$'${(r:$COLUMNS::\u2500:)}'%f$PS1 @@ -148,6 +152,9 @@ function key(){ ssh-add $gitssh } +## ROOT ## +alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload all udevrules on the fly + ### GENE-SHIT ### if [[ $HOST == "atlantislaptop" ]]; then GENE_BASE="/home/ik15ydit/bcarbeit/new_try"