-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
131 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
[user] | ||
name = kmille | ||
email = christian.schneider@androidloves.me | ||
name = kmille | ||
email = github@androidloves.me | ||
[alias] | ||
s = status | ||
l = log | ||
c = commit -a -m | ||
ls = log --stats | ||
d = diff | ||
ds = diff --stat | ||
c = commit -a -m | ||
ba = branch -a | ||
[pull] | ||
rebase = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
#set scroll history to 100,000 lines | ||
set-option -g history-limit 1000000 | ||
|
||
#color | ||
set -g default-terminal "screen-256color" | ||
# active window has a different background color | ||
set -g window-status-current-style bg=yellow | ||
|
||
#delay to min time | ||
set -sg escape-time 1 | ||
|
||
#vi movement | ||
#vim navigation | ||
bind h select-pane -L | ||
bind j select-pane -D | ||
bind k select-pane -U | ||
bind l select-pane -R | ||
|
||
setw -g monitor-activity on | ||
set -g visual-activity on | ||
# move window to the left/right with shift+l/h | ||
bind-key H swap-window -t -1 | ||
bind-key L swap-window -t +1 | ||
|
||
# BEGIN copy paste | ||
# 1) go in copy mode with ctrl+[ | ||
# 2) press v or shift+v to select text (ESC to abort without leaving copy mode) | ||
bind-key -T copy-mode-vi v send-keys -X begin-selection | ||
# 3) press y to yank | ||
bind-key -T copy-mode-vi y send-keys -X copy-selection | ||
# 4) press ctrl+p to paste in tmux | ||
unbind P | ||
bind P paste-buffer | ||
# copy to clipboard | ||
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i' | ||
# END copy paste | ||
# create new panes/windows in the same directory | ||
bind '"' split-window -c "#{pane_current_path}" | ||
bind '%' split-window -h -c "#{pane_current_path}" | ||
bind c new-window -ac "#{pane_current_path}" | ||
|
||
# use ctrl+[ => / to search (from top to down) | ||
# use ctrl+[ => ? to search (bottom up) | ||
# move pane to another window | ||
bind-key J command-prompt -p "join pane from:" "join-pane -s '%%'" | ||
bind-key S command-prompt -p "send pane to:" "join-pane -t '%%'" | ||
|
||
# reload tmux | ||
bind r source-file ~/.tmux.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters