Untitled
unknown
plain_text
4 years ago
518 B
1
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...