Removed img2iso function from zsh and fixed the path for mosh in tmix function

This commit is contained in:
Christian Baer 2020-09-24 21:38:01 +02:00
parent df5c1a0a64
commit 148e9e9e08
3 changed files with 1 additions and 18 deletions

View File

@ -1,16 +0,0 @@
function img2iso () {
if [ -z "$1" ]; then
# display usage if no parameters given
echo "Usage: img2iso <file_name>"
return 1
else
if [ -f "$1" ] ; then
filename=`basename $1 .img`
hdiutil convert ${filename}.img -format UDTO -o ${filename}.iso
mv ${filename}.iso.cdr ${filename}.iso
else
echo "'$n' - file does not exist"
return 1
fi
fi
}

View File

@ -21,7 +21,7 @@ function tmix () {
for SERVER in ${SERVERS}; do for SERVER in ${SERVERS}; do
echo ">>> Connecting to ${SERVER}" echo ">>> Connecting to ${SERVER}"
tmux new-window -n ${SERVER} -t ${SESSION}: tmux new-window -n ${SERVER} -t ${SESSION}:
tmux send-keys -t ${SESSION}:${SERVER} "/usr/local/bin/mosh ${SERVER} -- doas tmux a -d" C-m tmux send-keys -t ${SESSION}:${SERVER} "mosh ${SERVER} -- doas tmux a -d" C-m
done done
fi fi
fi fi

View File

@ -1,5 +1,4 @@
fpath=($fpath $ZDOTDIR/functions) fpath=($fpath $ZDOTDIR/functions)
autoload extract autoload extract
autoload img2iso
autoload tmix autoload tmix