This commit is contained in:
Marc Beninca 2024-11-12 09:43:56 +01:00
parent 4e81f18817
commit 6840588cd5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
5 changed files with 18 additions and 18 deletions

View file

@ -4,7 +4,7 @@ cd \
.. \ .. \
" "
# change current directory to its parent's parent # change current directory to its parents parent
alias ...="\ alias ...="\
cd \ cd \
../.. \ ../.. \

View file

@ -2,7 +2,7 @@ export LS_COLORS="\
di=0;94\ di=0;94\
" "
# list current directory's entries # list current directorys entries
alias l="\ alias l="\
ls \ ls \
--all \ --all \

View file

@ -1,4 +1,4 @@
# display pass entry's content # display pass entrys content
alias p="\ alias p="\
pass \ pass \
" "

View file

@ -1,31 +1,31 @@
function mrc { mrc() {
local container="${1}" local container="${1}"
local f local f
for f in 'dev' 'dev/pts' 'proc' 'sys' ; do for f in "dev" "dev/pts" "proc" "sys" ; do
mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}" mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
done done
} }
function crc { crc() {
local container="${1}" local container="${1}"
shift shift
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}" chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
} }
function urc { urc() {
local container="${1}" local container="${1}"
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do for f in "sys" "proc" "dev/pts" "dev" ; do
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}" umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
done done
} }
function mmc { mmc() {
local container="${1}" local container="${1}"
mount --bind '/deb' "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb" mount --bind "/deb" "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
} }
function umc { umc() {
local container="${1}" local container="${1}"
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb" umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
} }

View file

@ -1,4 +1,4 @@
function mo { mo() {
local directory="${1}" local directory="${1}"
local file local file
if [ "${directory}" ] ; then if [ "${directory}" ] ; then
@ -18,7 +18,7 @@ else
fi fi
} }
function uo { uo() {
cd 'overlay' cd 'overlay'
if umount 'mount' ; then if umount 'mount' ; then
rmdir 'mount' rmdir 'mount'
@ -32,7 +32,7 @@ rmdir 'overlay'
} }
function mr { mr() {
for f in 'dev' 'dev/pts' 'proc' 'sys' ; do for f in 'dev' 'dev/pts' 'proc' 'sys' ; do
mount --bind "/${f}" "overlay/mount/${f}" mount --bind "/${f}" "overlay/mount/${f}"
done done
@ -49,23 +49,23 @@ chroot \
\"overlay/mount\" \ \"overlay/mount\" \
" "
function ur { ur() {
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do for f in 'sys' 'proc' 'dev/pts' 'dev' ; do
umount --lazy "overlay/mount/${f}" umount --lazy "overlay/mount/${f}"
done done
} }
function mm { mm() {
mount --make-rslave --rbind '/deb' 'overlay/mount/deb' mount --make-rslave --rbind '/deb' 'overlay/mount/deb'
} }
function um { um() {
umount --recursive 'overlay/mount/deb' umount --recursive 'overlay/mount/deb'
} }
function ms { ms() {
local directory="${1}" local directory="${1}"
local level="${2}" local level="${2}"
if [ "${directory}" ] ; then if [ "${directory}" ] ; then