summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-24 12:44:57 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-24 12:45:30 -0700
commit4aa416cec8d966ffe1ad5a78cd3a2b365982ab53 (patch)
tree5a95f4b39153c06a90dbba5fce1ea721f522ce76
parentc67d4836f4d6d5e6c8ef4e2de38bd21ccb6ee1a1 (diff)
downloaddotfiles-4aa416cec8d966ffe1ad5a78cd3a2b365982ab53.tar.gz
don't unskel files we don't want to stow, and drop .bash_logout
-rw-r--r--.bash_logout5
-rwxr-xr-xbin/bstraph3
2 files changed, 2 insertions, 6 deletions
diff --git a/.bash_logout b/.bash_logout
deleted file mode 100644
index e58b0f86..00000000
--- a/.bash_logout
+++ /dev/null
@@ -1,5 +0,0 @@
-# when leaving the console clear the screen to increase privacy
-
-if [ "$SHLVL" = 1 ]; then
- [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
-fi
diff --git a/bin/bstraph b/bin/bstraph
index 7d729ff3..445cd87e 100755
--- a/bin/bstraph
+++ b/bin/bstraph
@@ -13,7 +13,8 @@ cd "$HOME/src/dotfiles"
if [ -d /etc/skel ]; then
cd /etc/skel
for file in $(find . -type f); do
- [ -e "$HOME/$file" -a ! -h "$HOME/$file" ] \
+ [ -e "$HOME/$file" -a ! -h "$HOME/$file" \
+ -a -e "$HOME/src/dotfiles/$file" ] \
&& cmp "$file" "$HOME/$file" >/dev/null && rm "$HOME/$file"
done
cd "$HOME/src/dotfiles"