From d0c380f13db16b6c8aace812c20247c024ac323c Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 18 Jan 2018 19:40:54 -0500 Subject: Automatically modify the tmux local configuration to be red if you're root --- mkshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mkshrc') diff --git a/mkshrc b/mkshrc index e6dd331..e250edc 100644 --- a/mkshrc +++ b/mkshrc @@ -453,7 +453,10 @@ pullsshconfig() { } updatetmuxconf() { pulldotfile "tmux.conf" - if ! [ -e $HOME/.tmux.conf.local ] ; then + if ! [ -e $HOME/.tmux.conf.local ] && [ `id -u` -eq 0 ] ; then + # If I ever change the color from green this will have to be updated I guess + grep 'green' $HOME/.tmux.conf | sed -e's/green/red/g' > $HOME/.tmux.conf.local + elif ! [ -e $HOME/.tmux.conf.local ] ; then touch $HOME/.tmux.conf.local fi } -- cgit v1.2.3