mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-12-22 14:09:53 +00:00
Compare commits
2 commits
b67b883c05
...
7ede21e362
Author | SHA1 | Date | |
---|---|---|---|
7ede21e362 | |||
bada246014 |
2 changed files with 21 additions and 3 deletions
|
@ -19,4 +19,19 @@
|
|||
- com.github.unrud.VideoDownloader
|
||||
- fyi.zoey.Boop-GTK
|
||||
- nl.hjdskes.gcolor3
|
||||
- re.sonny.Junction
|
||||
- org.gnome.DejaDup
|
||||
state: present
|
||||
|
||||
- name: Check if open function is set
|
||||
shell: grep -c "^function open" ~/.shellconfig/functions.sh || true
|
||||
register: open_test
|
||||
|
||||
- name: "Adding 'open' shell function"
|
||||
ansible.builtin.lineinfile:
|
||||
name: ~/.shellconfig/functions.sh
|
||||
line: |
|
||||
# Open files from CLI via Junction flatpak
|
||||
function open() { if [[ -f $@ || -d $@ ]]; then flatpak run re.sonny.Junction $@ &>/dev/null; else echo "❌No such file or directory '$@'"; false; fi}
|
||||
state: present
|
||||
when: open_test.stdout|int == 0
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
- name: Install vim (RHEL based)
|
||||
become: true
|
||||
package:
|
||||
name: vim-X11
|
||||
state: present
|
||||
name:
|
||||
- vim-X11
|
||||
- vim-common
|
||||
- vim-minimal
|
||||
state: latest
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: Install vim (Debian based)
|
||||
become: true
|
||||
package:
|
||||
name: vim-gnome
|
||||
name: vim-gtk
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
|
|
Loading…
Reference in a new issue