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 ...="\
cd \
../.. \

View file

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

View file

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

View file

@ -1,31 +1,31 @@
function mrc {
mrc() {
local container="${1}"
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}"
done
}
function crc {
crc() {
local container="${1}"
shift
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
}
function urc {
urc() {
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}"
done
}
function mmc {
mmc() {
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}"
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
}

View file

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