From 148e9e9e083aa4743135d0518a1e6d259669978d Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Thu, 24 Sep 2020 21:38:01 +0200 Subject: [PATCH] Removed img2iso function from zsh and fixed the path for mosh in tmix function --- .zsh/functions/img2iso | 16 ---------------- .zsh/functions/tmix | 2 +- .zsh/lib/20-functions.zsh | 1 - 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 .zsh/functions/img2iso diff --git a/.zsh/functions/img2iso b/.zsh/functions/img2iso deleted file mode 100644 index 462d607..0000000 --- a/.zsh/functions/img2iso +++ /dev/null @@ -1,16 +0,0 @@ -function img2iso () { - if [ -z "$1" ]; then - # display usage if no parameters given - echo "Usage: img2iso " - 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 -} diff --git a/.zsh/functions/tmix b/.zsh/functions/tmix index fdbd601..23ac27e 100644 --- a/.zsh/functions/tmix +++ b/.zsh/functions/tmix @@ -21,7 +21,7 @@ function tmix () { for SERVER in ${SERVERS}; do echo ">>> Connecting to ${SERVER}" 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 fi fi diff --git a/.zsh/lib/20-functions.zsh b/.zsh/lib/20-functions.zsh index f1311a2..ddcfe15 100644 --- a/.zsh/lib/20-functions.zsh +++ b/.zsh/lib/20-functions.zsh @@ -1,5 +1,4 @@ fpath=($fpath $ZDOTDIR/functions) autoload extract -autoload img2iso autoload tmix