From b9880c706d5c236eeff58050f21515eff80b7589 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 14 Jul 2014 09:20:19 +0200 Subject: Adding automatic symlinking of shotwell folder upon mount of photos harddrive --- .zsh.after/functions.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 2255af7..44ce51d 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -268,6 +268,9 @@ lopen() { ;; "photos") sudo cryptsetup luksOpen /dev/disk/by-id/ata-ST9500325AS_6VE457TN $1 + if [ ! -h ~/.cache/shotwell ]; then + ln -s /mnt/photos/shotwell/ ~/.cache/shotwell + fi ;; "backup") sudo cryptsetup luksOpen /dev/disk/by-id/ata-HGST_HTS725050A7E630_TF755AWHHS9S1M $1 -- cgit v1.2.3-70-g09d2