Skip to content

Commit

Permalink
Updating aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Kislyuk committed Sep 4, 2015
1 parent 0a0cae1 commit 1adfb86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions tmux2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
3 changes: 2 additions & 1 deletion zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1adfb86

Please sign in to comment.