From 914610c91967a74e3125391721f333e1b76796ae Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Aug 2018 17:35:23 +0200 Subject: add 'rwdo' function --- etc/.zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/.zshrc b/etc/.zshrc index 18097d9..4422fae 100644 --- a/etc/.zshrc +++ b/etc/.zshrc @@ -213,6 +213,12 @@ function mkcd { cd ${1} } +function rwdo { + sudo mount -o remount,rw / + "$@" + sudo mount -o remount,ro / +} + function world-readable { chmod -R a+rX . } -- cgit v1.2.3