Commit e9f2c998 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 af1b4a87
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"