changeset 134:3448a8c33716

Remove bashrc to install our copy if it is a file This happens if it was installed from a profile skeleton
author IBBoard <dev@ibboard.co.uk>
date Sat, 04 Jan 2020 19:41:32 +0000
parents ac6c055e7441
children 298fa524406a
files setup.sh
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/setup.sh	Sun Dec 22 11:56:27 2019 +0000
+++ b/setup.sh	Sat Jan 04 19:41:32 2020 +0000
@@ -29,6 +29,9 @@
 	fi
 }
 
+# Remove bashrc file - some skeleton home dirs include it
+[ -f ~/.bashrc -a ! -h ~/.bashrc ] && rm ~/.bashrc
+
 create_symlink tmux.conf ~/.tmux.conf
 create_symlink hgrc ~/.hgrc
 create_symlink prompt.py ~/.hg-prompt.py