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:
@@ -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" ]]
|
||||
|
||||
Reference in New Issue
Block a user