From f1fb239341e5c7088aa16037cb4a6f3aa75d1ac2 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 13 Mar 2011 05:03:57 +0100 Subject: Add function to mount encrypted thingies --- .zsh/zshfunctions | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.zsh') diff --git a/.zsh/zshfunctions b/.zsh/zshfunctions index e63ac19..6cf1f14 100644 --- a/.zsh/zshfunctions +++ b/.zsh/zshfunctions @@ -112,6 +112,17 @@ check_libs() done } +menc() +{ + local p + + read -rs "p?Password: " + echo $p | encfs --stdinpass ~/.enc/schreiben_in ~/schreiben/in + echo $p | encfs --stdinpass ~/.enc/schreiben_out ~/schreiben/out + + unset p +} + if [[ $UID == 0 ]]; then # unpack a package -- cgit v1.2.3-70-g09d2