Adding mt function to zsh functions.zsh
allows mosh and tmux to an arbitrary host
This commit is contained in:
parent
ea489444b6
commit
5f169f6acd
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue