From 4cefe6d3a7e5e487ad289605fe9357e6417ddb76 Mon Sep 17 00:00:00 2001 From: Corey Smith Date: Sat, 18 Apr 2026 19:20:24 +0000 Subject: [PATCH] Update makehome-srv.sh --- makehome-srv.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/makehome-srv.sh b/makehome-srv.sh index d9be635..374fdf4 100644 --- a/makehome-srv.sh +++ b/makehome-srv.sh @@ -5,10 +5,8 @@ echo "Setting up server environment..." -# Backup existing files just in case +echo "Backing up .vimrc to .vimrc.bak" cp ~/.vimrc ~/.vimrc.bak 2>/dev/null -cp ~/.tmux.conf ~/.tmux.conf.bak 2>/dev/null -cp ~/.bashrc ~/.bashrc.bak 2>/dev/null echo "Overwriting .vimrc" cat << 'EOF' > ~/.vimrc @@ -31,6 +29,9 @@ set autoindent nnoremap - :Ex EOF +echo "Backing up .tmux.conf to .tmux.conf.bak" +cp ~/.tmux.conf ~/.tmux.conf.bak 2>/dev/null + echo "Overwriting .tmux.conf" cat << 'EOF' > ~/.tmux.conf set -g status-style fg=colour231,bg=colour2 @@ -42,6 +43,9 @@ set -g status-left '#[bold] #(pretty=$(hostnamectl --pretty 2>/dev/null); [ -n set -g status-right ' %b %d %H:%M:%S (#(TZ="America/Los_Angeles" date "+%%I:%%M %%p")) ' EOF +echo "Backing up .bashrc to .bashrc.bak" +cp ~/.bashrc ~/.bashrc.bak 2>/dev/null + echo "Overwriting .bashrc" cat << 'EOF' > ~/.bashrc case $- in @@ -110,4 +114,4 @@ fi EOF echo "" -echo "Done! Log out and log back in, or run 'source ~/.bashrc' to apply all changes." \ No newline at end of file +echo "Done! Log out and log back in." \ No newline at end of file