Browse Source

add alias for pasteboard so that need not to set default-command in tmux.conf

pull/1/head
10sr 11 years ago
parent
commit
75bb8ffa1b
2 changed files with 9 additions and 3 deletions
  1. +6
    -0
      bashrc
  2. +3
    -3
      tmux.conf

+ 6
- 0
bashrc View File

@@ -381,6 +381,12 @@ mkcd(){
cd $1 cd $1
} }


if null type reattach-to-user-namespace
then
alias pbpaste="reattach-to-user-namespace pbpaste"
alias pbcopy="reattach-to-user-namespace pbcopy"
fi

catclip(){ catclip(){
if iswindows if iswindows
then then


+ 3
- 3
tmux.conf View File

@@ -11,7 +11,7 @@ set -g base-index 1
set -g default-command /bin/bash set -g default-command /bin/bash
#set -g default-terminal screen-256color #set -g default-terminal screen-256color
#set -g default-terminal screen-16color #set -g default-terminal screen-16color
set default-path "$HOME" # not work as i expected
set default-path "${HOME}" # not work as i expected


#set -g status-left "" #set -g status-left ""
#set -g status-right "#H | %a, %d %b %Y %T %z #(tmux -V)" #set -g status-right "#H | %a, %d %b %Y %T %z #(tmux -V)"
@@ -30,8 +30,8 @@ if "test `hostname` = darwin-mba.local" \
if "test `hostname` = newkiwi" \ if "test `hostname` = newkiwi" \
"set -g status-bg magenta; set -g pane-active-border-fg magenta" "set -g status-bg magenta; set -g pane-active-border-fg magenta"


if "test -f /opt/local/bin/reattach-to-user-namespace" \
"set-option -g default-command '/opt/local/bin/reattach-to-user-namespace bash'"
# if "test -f /opt/local/bin/reattach-to-user-namespace" \
# "set -g default-command '/opt/local/bin/reattach-to-user-namespace -l bash'"


# window-status-current # window-status-current
setw -g window-status-current-fg black setw -g window-status-current-fg black


Loading…
Cancel
Save