Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/fish/fish_plugins
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
jorgebucaran/fisher
oh-my-fish/theme-bobthefish
edc/bass
decors/fish-ghq
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[ghq]
root = ~/.ghq/src
30 changes: 30 additions & 0 deletions ansible/roles/dev_tools/tasks/commands/ghq.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ghq
- name: setup ghq command
become: false
block:
- name: download binary
ansible.builtin.get_url:
url: https://github.com/x-motemen/ghq/releases/download/v1.8.0/ghq_linux_amd64.zip
dest: /tmp/ghq_linux_amd64.zip

- name: unarchive ghq
ansible.builtin.unarchive:
src: /tmp/ghq_linux_amd64.zip
dest: /tmp/

- name: install binary
copy:
src: /tmp/ghq_linux_amd64/ghq
dest: "{{ lookup('env','HOME') }}/.local/bin/ghq"
mode: "0755"

- name: install bash completion
copy:
src: /tmp/ghq_linux_amd64/misc/bash/_ghq
dest: "{{ lookup('env','HOME') }}/.local/share/bash-completion/completions/ghq"
mode: "0644"

- name: install fish completion
ansible.builtin.shell: fisher install decors/fish-ghq
args:
executable: fish
2 changes: 2 additions & 0 deletions ansible/roles/dev_tools/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@
- import_tasks: commands/emacs.yaml

- import_tasks: commands/fish.yaml

- import_tasks: commands/ghq.yaml
2 changes: 1 addition & 1 deletion ansible/roles/xdg_base_directory/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- name: create local share dir
become: false
file:
path: "{{ lookup('env','HOME') }}/.local/share"
path: "{{ lookup('env','HOME') }}/.local/share/bash-completion/completions"
state: directory
mode: '0755'

Expand Down
Loading