From c2edbb1aa668030916075f278d56f82c42482859 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Wed, 14 Apr 2021 21:36:41 +0200 Subject: let's use the advanced automation framework vim --- toggle-multilib/vim.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 toggle-multilib/vim.sh diff --git a/toggle-multilib/vim.sh b/toggle-multilib/vim.sh new file mode 100755 index 0000000..644e82c --- /dev/null +++ b/toggle-multilib/vim.sh @@ -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 -- cgit v1.2.3-70-g09d2