aboutsummaryrefslogtreecommitdiff
path: root/toggle-multilib/vim.sh
blob: 644e82c14ac0b6f9f01169eaef29d358366d8903 (plain)
1
2
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