Skip to content

Commit

Permalink
Revert "remove iterm2"
Browse files Browse the repository at this point in the history
This reverts commit 7fcf8ad.
  • Loading branch information
thiagowfx committed Dec 28, 2024
1 parent 7fcf8ad commit 3ee600a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
# keep-sorted start
- role: brew
- role: brew_cask
- role: iterm2_shell_integration
- role: macos
# keep-sorted end
19 changes: 19 additions & 0 deletions ansible/roles/iterm2_shell_integration/tasks/main.yml
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
3 changes: 3 additions & 0 deletions zsh/.zshrc.d/plugins.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ ZSH_AUTOSUGGEST_STRATEGY=(history completion)
# a smarter cd command
# https://github.com/ajeetdsouza/zoxide
(( $+commands[zoxide] )) && eval "$(zoxide init zsh)"

# iTerm2 shell integration: https://iterm2.com/documentation-shell-integration.html
src_files "$HOME/.iterm2_shell_integration.zsh"

0 comments on commit 3ee600a

Please sign in to comment.