aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-11-14 15:45:15 +0100
committerEgor Tensin <egor@tensin.name>2025-11-14 15:45:15 +0100
commit1a003f44c8d0e4b1e57e3b2daad923f1556947f0 (patch)
tree2033e4911c40f24dc56cd31c64321d6704fd16ca
parentssh: reorder authorized keys (diff)
downloadlinux-home-1a003f44c8d0e4b1e57e3b2daad923f1556947f0.tar.gz
linux-home-1a003f44c8d0e4b1e57e3b2daad923f1556947f0.zip
setup.sh: remove ~/.ssh/known_hosts
-rwxr-xr-xsetup.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index b331eb0..29038a7 100755
--- a/setup.sh
+++ b/setup.sh
@@ -50,10 +50,19 @@ links_update() {
links-chmod go-w
}
+post_update() {
+ # Update the vim plugins:
+ "$script_dir/vim_plugins.sh"
+
+ # Remove ~/.ssh/known_hosts, I don't use it (and have a corresponding
+ # setting in ~/.ssh/config):
+ rm -f -- "$HOME/.ssh/known_hosts"
+}
+
main() {
config_links_in_path
links_update
- "$script_dir/vim_plugins.sh"
+ post_update
}
main