aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d')
-rw-r--r--shellrc.d/common5
1 files changed, 5 insertions, 0 deletions
diff --git a/shellrc.d/common b/shellrc.d/common
index ae8216e..d52767b 100644
--- a/shellrc.d/common
+++ b/shellrc.d/common
@@ -83,3 +83,8 @@ ssh-clear() {
rm -rf ~/.cache/ssh
mkdir -p ~/.cache/ssh
}
+
+# Chroot to bash to given path
+chroot-bash() {
+ sudo chroot "$1" /bin/bash
+}