This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
Idiot-Code-Golf/toggle-multilib/vim.sh
2021-04-14 21:36:41 +02:00

4 lines
204 B
Bash
Executable file

#!/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