Clipboard Sync and Buffer Sync. zsh tmux emacs vi with MacOSX Linux Windows.
you have to install.
- MacOSX tmux-MacOSX-pasteboard
- zsh 5.8
- tmux 3.2
- emacs 27
- vim 7.2
- ruby 3.1
- zsh . input spell
hello world
. go a head and C-k (kill-line) - switch emacs and C-y (yank) . curbuffer insert
hello world
. - switch other vi,tmux,MacOSX and paste . insert
hello world
.
- emacs. input spell
hello world
. go a head and C-k (kill-line) - swith remote PC (windows) and paste.
- PC (windows) copy string
foo bar baz
. - switch emacs and C-y (yank) . curbuffer insert
foo bar baz
.
$ cd ${HOME}
$ git clone https://github.com/mukaer/clipss.git
$ cd clippss
$ gem install bundle
$ bundle install --without development test
example install
$ cd ~
$ git clone https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
$ cd tmux-MacOSX-pasteboard
$ make reattach-to-user-namespace
$ cp reattach-to-user-namespace /usr/local/bin
~/.zshrc
Recommendation to use RAMDISK .CLIPSS_FILE
export CLIPSS_PATH="${HOME}/clipss"
export CLIPSS_FILE="/tmp/clipss_file.txt"
export CLIPSS_PORT="9116"
export CLIPSS_REMOTE_SV="http://192.168.0.100:9116 http://192.168.0.101:9116"
source ${CLIPSS_PATH}/zsh/clipss.zsh
clipss_initialize
bindkey '^Y' clipss+yank
bindkey '^k' clipss+kill-line
bindkey '^[w' clipss+copy-region-as-kill
bindkey '^W' clipss+backward-kill-word-or-kill-region
restart zsh
$ zsh
~/.tmux.conf
bind-key -T copy-mode M-w send-keys -X copy-pipe-and-cancel "${CLIPSS_PATH}/bin/clipss_push" #tmux 2.4 conf gramma
bind-key ] run 'tmux load-buffer -- $CLIPSS_FILE;tmux paste-buffer --;'
~/.emacs
(add-to-list 'load-path (concat (getenv "CLIPSS_PATH") "/emacs"))
(require 'clipss)
(setq clipss-path (getenv "CLIPSS_PATH") )
(clipss-init)
~/.vimrc
source ${CLIPSS_PATH}/vim/clipss.vim
nmap yy yy:call Clipss_Push()<CR>
nmap p :call Clipss_Pop()<CR>
Adds remote server url. zsh export CLIPSS_REMOTE_SV
or
ruby config file clipss/config/config.rb
.
if use config.rb
. overwirte setting variable
$ cd clipss/config/
$ cp config.rb.template config.rb
clipss/config/config.rb
config.remote_svs = ["http://192.168.0.100:9116",
"http://192.168.0.101:9116"]
comand exec start clipss server. local and remote .
$ clipss_httpd #path clipss/bin/clips_httpd
access
http://localhost:9116