Split out fzf from zsh into its own role
This commit is contained in:
		
							parent
							
								
									441343fd7c
								
							
						
					
					
						commit
						c596fcb87a
					
				| @ -9,6 +9,7 @@ | ||||
| 
 | ||||
|     - role: ag | ||||
|     - role: bat | ||||
|     - role: fzf | ||||
|     - role: git | ||||
|     - role: op | ||||
|     - role: tree | ||||
|  | ||||
| @ -7,6 +7,7 @@ | ||||
|     - role: system-info | ||||
| 
 | ||||
|     - role: ag | ||||
|     - role: fzf | ||||
|     - role: git | ||||
|     - role: op | ||||
|     - role: tree | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| --- | ||||
| - name: install fzf binaries | ||||
|   command: | ||||
|     cmd: ~/.config/zsh/fzf/install --bin | ||||
|     cmd: ~/.local/src/fzf/install --bin | ||||
							
								
								
									
										5
									
								
								roles/fzf/tasks/Darwin.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								roles/fzf/tasks/Darwin.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| --- | ||||
| - name: install homebrew package | ||||
|   homebrew: | ||||
|     name: fzf | ||||
|     state: latest | ||||
							
								
								
									
										13
									
								
								roles/fzf/tasks/Debian-old.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								roles/fzf/tasks/Debian-old.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| --- | ||||
| - name: clone fzf repo | ||||
|   git: | ||||
|     repo: https://github.com/junegunn/fzf.git | ||||
|     dest: ~/.local/src/fzf | ||||
|   notify: install fzf binaries | ||||
| - meta: flush_handlers | ||||
| 
 | ||||
| - name: create symbolic links | ||||
|   file: | ||||
|     state: link | ||||
|     src: ~/.local/src/fzf/bin/fzf | ||||
|     dest: ~/.local/bin/fzf | ||||
							
								
								
									
										12
									
								
								roles/fzf/tasks/Debian.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								roles/fzf/tasks/Debian.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| - name: install apt package | ||||
|   when: ansible_distribution == "Debian" and | ||||
|         ansible_distribution_version == "unstable" | ||||
|   become: true | ||||
|   apt: | ||||
|     name: fzf | ||||
|     state: latest | ||||
| 
 | ||||
| - include_tasks: Debian-old.yaml | ||||
|   when: not (ansible_distribution == "Debian" and | ||||
|              ansible_distribution_version == "unstable") | ||||
							
								
								
									
										5
									
								
								roles/fzf/tasks/Windows.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								roles/fzf/tasks/Windows.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| --- | ||||
| - name: install chocolatey package | ||||
|   win_chocolatey: | ||||
|     name: fzf | ||||
|     state: latest | ||||
							
								
								
									
										2
									
								
								roles/fzf/tasks/main.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								roles/fzf/tasks/main.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| --- | ||||
| - include_tasks: '{{ansible_os_family}}.yaml' | ||||
| @ -21,13 +21,6 @@ | ||||
|     - repo: https://github.com/zsh-users/zsh-completions.git | ||||
|       dest: ~/.config/zsh/zsh-completions | ||||
| 
 | ||||
| - name: clone fzf repo | ||||
|   git: | ||||
|     repo: https://github.com/junegunn/fzf.git | ||||
|     dest: ~/.config/zsh/fzf | ||||
|   notify: install fzf binaries | ||||
| - meta: flush_handlers | ||||
| 
 | ||||
| - name: create directories | ||||
|   file: | ||||
|     state: directory | ||||
| @ -62,10 +55,6 @@ | ||||
|       dest: ~/.local/share/zsh/site-functions/_layout | ||||
|     - src: ~/.config/zsh/notes/_note | ||||
|       dest: ~/.local/share/zsh/site-functions/_note | ||||
|     - src: ~/.config/zsh/fzf/bin/fzf | ||||
|       dest: ~/.local/bin/fzf | ||||
|     - src: ~/.config/zsh/fzf/bin/fzf-tmux | ||||
|       dest: ~/.local/bin/fzf-tmux | ||||
|     - src: ~/.config/zsh/cmake-uninstall | ||||
|       dest: ~/.local/bin/cmake-uninstall | ||||
|     - src: ~/.config/zsh/$ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user