aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-12-23 00:59:28 +0100
committerDavid Runge <dave@sleepmap.de>2015-12-23 00:59:28 +0100
commit49bafdd81ecf8cc08c63a02b3d6ad050a8d4a974 (patch)
tree19195b6f8abd015a80c220c7c1f5c6f60b3d873d
parentab5863b9e38280a124ceb0652c00ffcfdd93d8bb (diff)
downloaddotfiles-49bafdd81ecf8cc08c63a02b3d6ad050a8d4a974.tar.gz
dotfiles-49bafdd81ecf8cc08c63a02b3d6ad050a8d4a974.tar.bz2
dotfiles-49bafdd81ecf8cc08c63a02b3d6ad050a8d4a974.tar.xz
dotfiles-49bafdd81ecf8cc08c63a02b3d6ad050a8d4a974.zip
.zsh.after/functions.zsh: Adding video and media harddrives to the lopen function.
-rw-r--r--.zsh.after/functions.zsh13
1 files changed, 13 insertions, 0 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh
index be862e8..a0042c2 100644
--- a/.zsh.after/functions.zsh
+++ b/.zsh.after/functions.zsh
@@ -305,6 +305,19 @@ lopen() {
"backup")
sudo cryptsetup luksOpen "/dev/disk/by-id/usb-ST950042_0ASG_55DFFFFFFFFF-0:0" $1
;;
+ "media")
+ if [ -L "/dev/disk/by-id/ata-ST4000LM016-1N2170_W80088G0" ]; then
+ sudo cryptsetup luksOpen "/dev/disk/by-id/ata-ST4000LM016-1N2170_W80088G0" $1
+ elif [ -L "/dev/disk/by-uuid/e5adbc14-732e-43e8-b6e1-febdfe6d1d3c" ]; then
+ sudo cryptsetup luksOpen "/dev/disk/by-uuid/e5adbc14-732e-43e8-b6e1-febdfe6d1d3c" $1
+ fi
+ ;;
+ "video")
+ if [ -L "/dev/disk/by-id/ata-ST4000LM016-1N2170_W80092WW" ]; then
+ sudo cryptsetup luksOpen "/dev/disk/by-id/ata-ST4000LM016-1N2170_W80092WW" $1
+ elif [ -L "/dev/disk/by-uuid/5ac700be-e168-495b-b133-42064fa101e4" ]; then
+ sudo cryptsetup luksOpen "/dev/disk/by-uuid/5ac700be-e168-495b-b133-42064fa101e4" $1
+ fi
esac
esac
if [[ -e "/dev/mapper/$1" ]]; then