diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-01-18 19:40:54 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-01-18 19:40:54 -0500 |
| commit | d0c380f13db16b6c8aace812c20247c024ac323c (patch) | |
| tree | 7261f05f843fff7b369c6f99a59320a6b8d8719f /mkshrc | |
| parent | 6af3dc7e4e13fc2af957cab2d29af8f0979886c8 (diff) | |
| download | dotfiles-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-- | mkshrc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |
