From b067c115ac2791250667bf816055f1aabefb817e Mon Sep 17 00:00:00 2001 From: guoqiang1 Date: Tue, 10 Nov 2020 13:57:41 +0800 Subject: [PATCH] add event handle in tmux --- dotfiles/tmux.conf | 3 +++ dotfiles/zshrc | 16 ---------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index 3cfc225..bb77cfe 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -12,6 +12,9 @@ bind -T ocpy-mode-vi 'r' send -X rectangle-toggle # escape time set -sg escape-time 0 +# for vim-tmux-clipboard +set -g focus-events on + # split panes bind '"' split-window -h -c "#{pane_current_path}" bind % split-window -v -c "#{pane_current_path}" diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 4871aa3..ebfe1c9 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -109,22 +109,6 @@ killseq() { for i in $(seq $1 $2); do kill -9 $i; done } -# ownCloud -alias owndown="wget --http-user=guoqiang1 --http-passwd=0okm@NJI95 --no-check-certificate" -function ownup() { - if [ $# -lt 1 ]; then - echo "Usage: $0 src dst" - return - fi - SRC=$1 - DST=$2 - if [ -z ${DST##**/} ]; then - DST=$DST${SRC##**/} - fi - echo "up $SRC to $DST" - curl -k -X PUT -u guoqiang1:0okm@NJI95 https://cloud.momenta.works/remote.php/dav/files/guoqiang1/$DST --data-binary @"$SRC" --progress-bar -} - # tmux # alias tmux="tmux -2" alias tmls="tmux ls"