Commit 3d2e798a authored by nimrod's avatar nimrod
Browse files

- Ignore hidden files when generating the SSH config (otherwise Vim's...

- Ignore hidden files when generating the SSH config (otherwise Vim's temporary files are added which messes up the config).
parent 75b94248
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/bin/sh
set -eu
find "$HOME/.ssh/config.d/" -type f -print0 | sort --zero | xargs -0 cat > "$HOME/.ssh/config"
find "$HOME/.ssh/config.d/" -type f \! -name '.*' -print0 | sort --zero | xargs -0 cat > "$HOME/.ssh/config"