diff options
| author | Your Name <you@example.com> | 2026-02-20 23:41:18 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-02-20 23:41:18 +0800 |
| commit | 9abbbe2ea86984865d4f3114583f969949bb3e53 (patch) | |
| tree | a4e4e39160cf6a098cd55c4527ea16a3f6f16cc7 /setup/core/vim.sh | |
| parent | a9bfc96ce01a8b71425f30ce13e7bf12b5080367 (diff) | |
Make setup scripts idempotent
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'setup/core/vim.sh')
| -rwxr-xr-x | setup/core/vim.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setup/core/vim.sh b/setup/core/vim.sh index 1e1a4c1..9571887 100755 --- a/setup/core/vim.sh +++ b/setup/core/vim.sh | |||
| @@ -8,6 +8,8 @@ CLIP_HOST="p.noml.ch" | |||
| 8 | CLIP_PORT="5023" | 8 | CLIP_PORT="5023" |
| 9 | CLIP_CMD="openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 ${CLIP_HOST} ${CLIP_PORT}" | 9 | CLIP_CMD="openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 ${CLIP_HOST} ${CLIP_PORT}" |
| 10 | 10 | ||
| 11 | grep -q 'netcat_clipboard' "$VIMRC_PATH" && exit 0 | ||
| 12 | |||
| 11 | cat << EOF >> "$VIMRC_PATH" | 13 | cat << EOF >> "$VIMRC_PATH" |
| 12 | augroup netcat_clipboard | 14 | augroup netcat_clipboard |
| 13 | au! | 15 | au! |
