aboutsummaryrefslogtreecommitdiff
path: root/shell/misc
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-09-05 00:23:41 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-09-05 00:23:41 -0400
commit27ac56f3af62474cb4e69728541e551c0c5dd4a4 (patch)
tree4fece6e169320bdfa8b2fc90fc629285520fcb0f /shell/misc
parent319ac2aec7787ae500eb3ff84020b7ca3e149298 (diff)
downloaddotfiles-27ac56f3af62474cb4e69728541e551c0c5dd4a4.tar.gz
dotfiles-27ac56f3af62474cb4e69728541e551c0c5dd4a4.tar.xz
Major updates to my shell configuration
Diffstat (limited to 'shell/misc')
-rw-r--r--shell/misc25
1 files changed, 0 insertions, 25 deletions
diff --git a/shell/misc b/shell/misc
deleted file mode 100644
index 3cdabeb..0000000
--- a/shell/misc
+++ /dev/null
@@ -1,25 +0,0 @@
-
-pkg_switch_branch() {
- _f="/etc/pkg/FreeBSD.conf"
- cp $_f ${_f}.orig
- sed -e's/quarterly/latest/' < ${_f}.orig > ${_f}
-}
-# System setup `chroot`, useful mainly on Linux
-syschroot() {
- CHDIR=$1
- PROG=$2
- CUR_PS1="$PS1"
- PS1="(CHROOT) # "
- mount -t proc none "$CHDIR/proc"
- mount -o bind /dev "$CHDIR/dev"
- mount -o bind /dev/pts "$CHDIR/dev/pts"
- mount -o bind /sys "$CHDIR/sys"
- mount -o bind /run "$CHDIR/run"
- if [ "$PROG" = "/bin/bash" ] ; then
- PS1="(CHROOT) [ \u@\h \w ] # "
- fi
- chroot "$CHDIR" "$PROG"
- umount "$CHDIR/dev/pts" "$CHDIR/dev" "$CHDIR/sys" "$CHDIR/proc" \
- "$CHDIR/run"
- PS1="$CUR_PS1"
-}