aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zsh.after/functions.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh
index 99b3486..deb47ed 100644
--- a/.zsh.after/functions.zsh
+++ b/.zsh.after/functions.zsh
@@ -358,6 +358,9 @@ lclose() {
if [[ $HOST == "homey" ]]; then
sudo systemctl stop rpc-{idmapd,mountd} rpcbind
fi
+ if [ $1 = "media" ]; then
+ sudo umount /mnt/{music,photos}
+ fi
sudo umount /mnt/$1
sudo cryptsetup luksClose $1
#restart services that blocked the umount