aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-07-14 09:20:19 +0200
committerDavid Runge <david.runge@frqrec.com>2014-07-14 09:20:19 +0200
commitb9880c706d5c236eeff58050f21515eff80b7589 (patch)
treeb5e3acc122980a73f769b6524231be7317089263
parentb4c5c448323e5cd8705d72a08ef294982a8894eb (diff)
downloaddotfiles-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.zsh3
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