aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-01-18 19:40:54 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-01-18 19:40:54 -0500
commitd0c380f13db16b6c8aace812c20247c024ac323c (patch)
tree7261f05f843fff7b369c6f99a59320a6b8d8719f /mkshrc
parent6af3dc7e4e13fc2af957cab2d29af8f0979886c8 (diff)
downloaddotfiles-d0c380f13db16b6c8aace812c20247c024ac323c.tar.gz
dotfiles-d0c380f13db16b6c8aace812c20247c024ac323c.tar.xz
Automatically modify the tmux local configuration to be red if you're root
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc5
1 files changed, 4 insertions, 1 deletions
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
}