Removed img2iso function from zsh and fixed the path for mosh in tmix function
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
fpath=($fpath $ZDOTDIR/functions)
 | 
			
		||||
 | 
			
		||||
autoload extract
 | 
			
		||||
autoload img2iso
 | 
			
		||||
autoload tmix
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user