diff --git a/tmux2.conf b/tmux2.conf index 64b87ff..35911a7 100644 --- a/tmux2.conf +++ b/tmux2.conf @@ -75,7 +75,7 @@ bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'C-v' rectangle-toggle bind-key -t vi-copy 'y' copy-selection #bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" -bind C-y run-shell "tmux show-buffer | xclip -sel clip -i" +#bind C-y run-shell "tmux show-buffer | xclip -sel clip -i" # set window list colors - red for active and cyan for inactive set-window-option -g window-status-fg brightblue #base0 @@ -85,14 +85,16 @@ set-window-option -g window-status-attr dim set-window-option -g window-status-current-fg brightred #orange set-window-option -g window-status-current-bg colour236 set-window-option -g window-status-current-attr bright - - bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard' -bind p paste-buffer # `prefix + p` pastes the latest buffer +#bind p paste-buffer # `prefix + p` pastes the latest buffer # in copy modeā€¦ # Update default binding of `Enter` to also use copy-pipe -# bind -t vi-copy Enter -#bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"toggle +bind -t vi-copy Enter copy-selection +#bind-key -t vi-copy Enter #copy-pipe "reattach-to-user-namespace pbcopy"toggle +set-option -g default-command "reattach-to-user-namespace -l zsh" + +# These two necessary for Mac OS copying +bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" diff --git a/zshrc b/zshrc index 62d7aab..166a938 100644 --- a/zshrc +++ b/zshrc @@ -100,13 +100,14 @@ alias grm='git rebase origin/master' alias gp='git pull origin master' alias gra='git reset --soft HEAD@{1}' -alias sls='s4cmd ls' +alias sl='s4cmd ls' alias sg='s4cmd get' alias sp='s4cmd put' # Watcher alias watch='python ~/bin/keepwatching' +alias venv='use_virtualenv' alias redshift="ssh hive@hive001" alias reload="source ~/.zshrc"