zsh:autoload:crypt-*: Rename to crypt-{open,close}

Rename `crypt-{,u}mount` to `crypt-{open,close}` as in these functions a
lot more happens than just {,un}mounting.
This commit is contained in:
2022-02-01 01:18:15 +01:00
parent eac6953150
commit 9817ef3f63

View File

@@ -252,7 +252,7 @@ safe-remove() {
udisksctl power-off -b "/dev/${$(lsblk -no pkname "$1"):-${1#/dev/}}"
}
crypt-mount() {
crypt-open() {
emulate -L zsh -o err_return -o pipe_fail
[[ $# -gt 0 ]]
[[ -b "$1" ]]
@@ -277,7 +277,7 @@ crypt-mount() {
ln -s "$mount_point" ~/mounts/
}
crypt-umount() {
crypt-close() {
emulate -L zsh -o err_return -o pipe_fail
[[ $# -gt 0 ]]
[[ -b "$1" ]]