Skip to content

Commit

Permalink
tmux: Remove reattach-to-user-namespace
Browse files Browse the repository at this point in the history
This works now out of the box! Thanks to @gabebw for the tip.

Fixes #28
  • Loading branch information
gfontenot committed Jun 18, 2018
1 parent 5e0f643 commit a2905c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ brew 'mplayer'
brew 'neovim'
brew 'pinentry-mac'
brew 'procmail'
brew 'reattach-to-user-namespace'
brew 'recode'
brew 'the_silver_searcher'
brew 'thoughtbot/formulae/gitsh'
Expand Down
6 changes: 3 additions & 3 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# General {{{
# ============================================================================

set-option -g default-command "reattach-to-user-namespace -l zsh"
set-option -g default-command "zsh"
set -g default-terminal "screen-256color"
set -g history-limit 20000
set-option -sg escape-time 10
Expand All @@ -26,7 +26,7 @@ unbind r
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"

# Open a temporary split with gitsh
bind g split-window -h -c '#{pane_current_path}' -l 83 'reattach-to-user-namespace gitsh'
bind g split-window -h -c '#{pane_current_path}' -l 83 'gitsh'

# jump between sessions
unbind p
Expand All @@ -40,7 +40,7 @@ bind-key u capture-pane -J \; \

# copy/paste
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'pbcopy'

# Open new windows in the same directory as the parent
bind c new-window -c "#{pane_current_path}"
Expand Down

0 comments on commit a2905c8

Please sign in to comment.