From 7823dc6b48ab6374c2658a05b319e77871ecc28e Mon Sep 17 00:00:00 2001 From: eoli3n Date: Sun, 1 Dec 2019 17:43:33 +0100 Subject: [PATCH] added userbin dir, up bin, and vi alias to fish --- roles/fish/files/functions/vi.fish | 4 ++++ roles/fish/tasks/main.yml | 5 +++++ roles/userbin/tasks/main.yml | 12 ++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 roles/fish/files/functions/vi.fish create mode 100644 roles/userbin/tasks/main.yml diff --git a/roles/fish/files/functions/vi.fish b/roles/fish/files/functions/vi.fish new file mode 100644 index 0000000..cd120e2 --- /dev/null +++ b/roles/fish/files/functions/vi.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function vi --description 'alias vi=nvim' + nvim $argv; +end diff --git a/roles/fish/tasks/main.yml b/roles/fish/tasks/main.yml index 9639027..f66dbdd 100644 --- a/roles/fish/tasks/main.yml +++ b/roles/fish/tasks/main.yml @@ -45,5 +45,10 @@ backup: yes when: "'laptop' in {{ group_names }}" +- name: copy aliases + synchronize: + src: files/functions/ + dest: ~/.config/fish/ + - debug: msg: "Do not forget to 'chsh /usr/bin/fish'" diff --git a/roles/userbin/tasks/main.yml b/roles/userbin/tasks/main.yml new file mode 100644 index 0000000..022d687 --- /dev/null +++ b/roles/userbin/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: create home/bin dir + file: + path: ~/bin + state: directory + +- name: install ix.io up in in home/bin + shell: | + curl ix.io/client > ~/bin/up + chmod +x ~/bin/up + args: + creates: ~/bin/up