diff options
author | David Runge <david.runge@frqrec.com> | 2014-07-14 09:20:19 +0200 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-07-14 09:20:19 +0200 |
commit | b9880c706d5c236eeff58050f21515eff80b7589 (patch) | |
tree | b5e3acc122980a73f769b6524231be7317089263 | |
parent | b4c5c448323e5cd8705d72a08ef294982a8894eb (diff) | |
download | dotfiles-b9880c706d5c236eeff58050f21515eff80b7589.tar.gz dotfiles-b9880c706d5c236eeff58050f21515eff80b7589.tar.bz2 dotfiles-b9880c706d5c236eeff58050f21515eff80b7589.tar.xz dotfiles-b9880c706d5c236eeff58050f21515eff80b7589.zip |
Adding automatic symlinking of shotwell folder upon mount of photos harddrive
-rw-r--r-- | .zsh.after/functions.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |