1
0
Fork 0
This commit is contained in:
Arthur K. 2026-01-06 07:36:53 +03:00
parent c449dfcb5f
commit 559939e2f4
Signed by: wzray
GPG key ID: B97F30FDC4636357
49 changed files with 729 additions and 252 deletions

View file

@ -0,0 +1,14 @@
# shellcheck disable=SC2168
local DIRNAME="$HOME/Services/gpu"
local MOUNT_DIRNAME="$DIRNAME/.volumes"
cd::enter() {
! mount | grep -q "$MOUNT_DIRNAME" && mount "$MOUNT_DIRNAME"
}
cd::leave() {
! fuser "$DIRNAME" >/dev/null 2>&1 && umount "$MOUNT_DIRNAME"
}
# vim: ft=sh