diff --git a/zsh/.zsh/functions.zsh b/zsh/.zsh/functions.zsh index 108c557..3dad8cf 100644 --- a/zsh/.zsh/functions.zsh +++ b/zsh/.zsh/functions.zsh @@ -34,6 +34,20 @@ extract() { fi } + +# create an archive of a list of files, compress the archive, and encrypt the compressed archive +function archive-and-encrypt { + echo -n "Enter desired output filename: " + read filename + tar cJ $1 | \ + gpg -q -r andrew@amdavidson.com -s -e -o "$filename.tar.xz.gpg" +} + +# run mosh and tmux to a specific host +function mt { + mosh $1 -- tmux new-session -A -s main +} + # blank-chrome function blank-chrome { if [ "$@" ]; then