Skip to content

Commit

Permalink
feat: junegunn/fzf replaced with more functional ytet5uy4/fzf-widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 1, 2017
1 parent ce2f629 commit ffd2d6e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 29 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ You can test role in vagrant:
vagrant up
```

## TODO
- zero-knowledge install
- powerline fonts
- upgrade instructions
- hotkeys
- vagrant only for localhost

## Includes:
- zsh
- tmux (if plugin enabled)
Expand All @@ -18,9 +25,9 @@ vagrant up
- [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) (except Debian Squeeze),
with workaround for [#zsh-syntax-highlighting/286](https://github.com/zsh-users/zsh-syntax-highlighting/issues/286)
- [zsh-command-time](https://github.com/popstas/zsh-command-time)
- [urbainvaes/fzf-marks](https://github.com/popstas/urbainvaes/fzf-marks)
- [unixorn/autoupdate-antigen.zshplugin](https://github.com/unixorn/autoupdate-antigen.zshplugin)
- [ytet5uy4/fzf-widgets](https://github.com/ytet5uy4/fzf-widgets)
- [urbainvaes/fzf-marks](https://github.com/popstas/urbainvaes/fzf-marks)

## Features
- customize powerlevel9k theme prompt segments and colors
Expand All @@ -37,12 +44,12 @@ vagrant up


## Install
Download role:
1. Download role:
```
ansible-galaxy install viasite-ansible.zsh
```

Write playbook:
2. Write playbook:
```
- hosts: all
vars:
Expand All @@ -51,7 +58,7 @@ Write playbook:
- viasite-ansible.zsh
```

Provision playbook:
3. Provision playbook:
```
ansible-playbook -i "localhost," -c local zsh.yml
```
Expand All @@ -71,6 +78,11 @@ Or via command:
ansible-playbook -i hosts zsh.yml --extra-vars="zsh_user=otheruser"
```

4. Install fzf **without shell extensions**, [download binary](https://github.com/junegunn/fzf-bin/releases)
or `brew install fzf` for macOS.

Note: I don't use `tmux-fzf` and don't tested work of it.



## Configure
Expand Down
7 changes: 2 additions & 5 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ zsh_antigen_bundles:
- vagrant
- zsh_reload

#- junegunn/fzf
#- Treri/fzf-zsh
#- ytet5uy4/fzf-widgets
#- "/Users/popstas/projects/shell/fzf-widgets --no-local-clone"
- zsh-users/zsh-autosuggestions
- popstas/zsh-command-time
- urbainvaes/fzf-marks # replaces jump plugin, mark, jump and Ctrl+G
- unixorn/autoupdate-antigen.zshplugin
- urbainvaes/fzf-marks # replaces jump plugin, mark, jump and Ctrl+G
- ytet5uy4/fzf-widgets

#- tysonwolker/iterm-tab-colors # random tab colors depends of pwd
#- wbinglee/zsh-wakatime
Expand Down
13 changes: 0 additions & 13 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@
remote_src: yes
creates: /usr/local/bin/fzf

#- name: Clone fzf plugin
# git:
# repo: https://github.com/junegunn/fzf.git
# dest: "{{ zsh_custom_path }}/plugins/fzf"
# version: master
# when: "'fzf-zsh' in zsh_plugins"
#
#- name: Install fzf
# command: "{{ zsh_custom_path }}/plugins/fzf/install --key-bindings --no-completion --no-update-rc"
# args:
# creates: "{{ zsh_custom_path }}/plugins/fzf/bin/fzf"
# when: "'fzf-zsh' in zsh_plugins"
#
- name: Set directory permissions
file:
name: "{{ zsh_antigen_path }}"
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
tags: [ zsh, configure ]

- include: post-install.yml
tags: [ zsh, install ]
tags: [ zsh, install, post_install ]
6 changes: 0 additions & 6 deletions tasks/post-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@
become_user: "{{ zsh_user }}"
changed_when: false
failed_when: false

#- name: Install fzf
# command: "{{ zsh_antigen_fzf_path }}/install --key-bindings --no-completion --no-update-rc"
# args:
# creates: "{{ zsh_antigen_fzf_path }}/bin/fzf"
# when: "'junegunn/fzf' in zsh_antigen_bundles"

0 comments on commit ffd2d6e

Please sign in to comment.