Skip to content

Commit 417a3d8

Browse files
committedDec 1, 2019
Remove redundant reattach-to-user-namespace
tmux-plugins/tmux-sensible#42
1 parent 6b7a7fc commit 417a3d8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎hammerspoon/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function mountApp(appName)
1919
end
2020

2121
hs.hotkey.bind(hyper, 'c', mountApp("Google Chrome"))
22-
hs.hotkey.bind(hyper, 'i', mountApp("iTerm"))
22+
-- hs.hotkey.bind(hyper, 'i', mountApp("iTerm"))
2323
hs.hotkey.bind(hyper, 'j', mountApp("IntelliJ IDEA"))
2424
hs.hotkey.bind(hyper, 's', mountApp("Slack"))
2525
hs.hotkey.bind(hyper, 't', mountApp("Alacritty"))

‎tmux/.tmux.conf

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
set-option -g repeat-time 1000
66
set-option -g default-shell $SHELL
77

8-
# Patch for OS X pbpaste and pbcopy under tmux.
9-
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
10-
118
# Default termtype. If the rcfile sets $TERM, that overrides this value.
129
set-option -g default-terminal screen-256color
1310
set-option -g terminal-overrides xterm:color=256
@@ -113,7 +110,7 @@ bind v split-window -h
113110
# vi mode begin selection
114111
bind-key -T copy-mode-vi v send-keys -X begin-selection
115112
# copy selection to osx clipboard
116-
bind-key -T copy-mode-vi v send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
113+
bind-key -T copy-mode-vi v send-keys -X copy-pipe "pbcopy"
117114
# copy till end of line to tmux clipboard
118115
bind-key -T copy-mode-vi v send-keys -X copy-end-of-line
119116

@@ -128,7 +125,7 @@ unbind ^L
128125
bind ^L refresh-client
129126

130127
unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
131-
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
128+
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
132129
unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
133130
unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
134131
unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection

0 commit comments

Comments
 (0)
Failed to load comments.