summaryrefslogtreecommitdiff
path: root/.zsh/zshfunctions
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-03-13 05:03:57 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-03-13 05:03:58 +0100
commitf1fb239341e5c7088aa16037cb4a6f3aa75d1ac2 (patch)
treef64cbf4bd1dee55cbe3e0047201ccfab469d56de /.zsh/zshfunctions
parentdbc3a48fbdf0c0dcb56f66efcd2f8382897e6fd7 (diff)
downloaddotfiles-f1fb239341e5c7088aa16037cb4a6f3aa75d1ac2.tar.gz
dotfiles-f1fb239341e5c7088aa16037cb4a6f3aa75d1ac2.tar.bz2
dotfiles-f1fb239341e5c7088aa16037cb4a6f3aa75d1ac2.zip
Add function to mount encrypted thingies
Diffstat (limited to '.zsh/zshfunctions')
-rw-r--r--.zsh/zshfunctions11
1 files changed, 11 insertions, 0 deletions
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