From 1ad397771dbed8b86432ef424725108f47f5092a Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 10 Dec 2022 23:22:55 +0000 Subject: [PATCH] Fix macOS tmux terminfo issue with htop --- roles/tmux/tasks/Darwin.yaml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/roles/tmux/tasks/Darwin.yaml b/roles/tmux/tasks/Darwin.yaml index 4693bcb..d52f536 100644 --- a/roles/tmux/tasks/Darwin.yaml +++ b/roles/tmux/tasks/Darwin.yaml @@ -14,28 +14,21 @@ failed_when: false register: terminfo_exists -- name: download latest terminal info descriptions +- name: download latest terminfo description when: terminfo_exists.rc == 1 get_url: - url: https://invisible-island.net/datafiles/current/terminfo.src.gz - dest: ~/terminfo.src.gz - -- name: extract latest terminfo info descriptions - when: terminfo_exists.rc == 1 - command: /usr/bin/gunzip ~/terminfo.src.gz + url: https://gist.githubusercontent.com/nicm/ea9cf3c93f22e0246ec858122d9abea1/raw/37ae29fc86e88b48dbc8a674478ad3e7a009f357/tmux-256color + dest: ~/tmux-256color - name: compile terminal info when: terminfo_exists.rc == 1 - command: /usr/bin/tic -xe tmux-256color ~/terminfo.src + command: /usr/bin/tic -x ~/tmux-256color -- name: cleanup downloaded terminal info descriptions +- name: cleanup downloaded terminfo description when: terminfo_exists.rc == 1 file: - path: '{{item}}' + path: ~/tmux-256color state: absent - with_items: - - ~/temrinfo.src.gz - - ~/terminfo.src - name: check terminal info description exists when: terminfo_exists.rc == 1