mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-12-23 06:29:53 +00:00
Compare commits
1 commit
7ede21e362
...
b67b883c05
Author | SHA1 | Date | |
---|---|---|---|
b67b883c05 |
2 changed files with 3 additions and 21 deletions
|
@ -19,19 +19,4 @@
|
|||
- 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,17 +1,14 @@
|
|||
- name: Install vim (RHEL based)
|
||||
become: true
|
||||
package:
|
||||
name:
|
||||
- vim-X11
|
||||
- vim-common
|
||||
- vim-minimal
|
||||
state: latest
|
||||
name: vim-X11
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: Install vim (Debian based)
|
||||
become: true
|
||||
package:
|
||||
name: vim-gtk
|
||||
name: vim-gnome
|
||||
state: present
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
|
|
Loading…
Reference in a new issue