Untitled
Anonymous
plain_text
03/19/2021 3:31 AM
692 B
11
Indexable
#!/bin/bash
direction=$1
edge=$2
cmd=$3
if [ $3 == 'vim' ]
then
case $direction in
left)
tmux send-keys C-h
;;
down)
tmux send-keys C-j
;;
up)
tmux send-keys C-k
;;
right)
tmux send-keys C-l
;;
*)
esac
elif [ $edge != '1' ]
then
case $direction in
left)
tmux select-pane -L
;;
down)
tmux select-pane -D
;;
up)
tmux select-pane -U
;;
right)
tmux select-pane -R
;;
*)
esac
fi
Editor is loading...