let's use the advanced automation framework vim

This commit is contained in:
Moritz Poldrack 2021-04-14 21:36:41 +02:00
parent 8e2bd531b5
commit c2edbb1aa6
No known key found for this signature in database
GPG key ID: 27F176BA13437B7C

3
toggle-multilib/vim.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
grep '^\[multilib]' /etc/pacman.conf >/dev/null && sudo vim /etc/pacman.conf '+%s/^\(\[multilib]\)\n\(.*\)/#\1\r#\2' +x || sudo vim /etc/pacman.conf '+%s/^#\(\[multilib\]\)\n#\(.*\)/\1\r\2' +x