summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-08-12 17:35:23 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-08-12 17:35:23 +0200
commit914610c91967a74e3125391721f333e1b76796ae (patch)
tree8d30caf12c2bf8ecf331d9cd4552d6276158f702
parent52de1bb9a65a4fada40d544d1400c80d94a321cb (diff)
add 'rwdo' function
-rw-r--r--etc/.zshrc6
1 files changed, 6 insertions, 0 deletions
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 .
}