-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 7fcf8ad.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Enables iterm2 Shell Integration: https://iterm2.com/documentation-shell-integration.html | ||
--- | ||
- name: Check if iTerm2 shell integration files exist | ||
ansible.builtin.find: | ||
hidden: true | ||
paths: "{{ ansible_env.HOME }}" | ||
patterns: ".iterm2_shell_integration*" | ||
register: iterm2_integration_files | ||
|
||
- name: Set register variable if iTerm2 shell integration files exist | ||
ansible.builtin.set_fact: | ||
iterm2_integration_exists: "{{ iterm2_integration_files.matched }}" | ||
|
||
- name: Download and install iTerm2 shell integration script | ||
ansible.builtin.get_url: | ||
url: "https://iterm2.com/misc/install_shell_integration.sh" | ||
dest: "{{ ansible_env.HOME }}/" | ||
mode: '0755' | ||
when: not iterm2_integration_exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters