Last active
April 11, 2017 15:21
-
-
Save cms/1469e84f41067f973ee802927d0eab98 to your computer and use it in GitHub Desktop.
config
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
[core] | |
editor = vim | |
filemode = false | |
trustctime = false | |
[color] | |
ui = true | |
[credential] | |
helper = cache --timeout=3600 | |
[merge] | |
tool = vimdiff | |
[mergetool] | |
keeptemporaries = false | |
keepbackups = false | |
prompt = false | |
trustexitcode = false | |
[alias] | |
last = log -1 --stat | |
cp = cherry-pick | |
co = checkout | |
cl = clone | |
ci = commit | |
st = status -sb | |
br = branch | |
unstage = reset HEAD -- | |
dc = diff --cached | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
webui = !python /home/Christian/.git-webui/release/libexec/git-core/git-webui | |
[rerere] | |
enabled = true | |
[user] | |
name = Christian C. Salvado | |
email = cmsalvado@vonap.com | |
[push] | |
default = matching | |
[webui] | |
autoupdate = 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
# improve colors [56/545]set -g default-terminal 'screen-256color' | |
# act like GNU screen | |
set -g prefix C-a | |
unbind C-b | |
# lower escape time | |
set -sg escape-time 1 | |
# start window numbers at 1 to match keyboard order with tmux window order | |
set -g base-index 1 | |
# | |
# start pane numbers at 1 | |
set -g pane-base-index 1 | |
# renumber windows sequentially after closing any of them | |
set -g renumber-windows on | |
# reload ~/.tmux.conf | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# send prefix to other applications | |
bind C-a send-prefix | |
# Bindings for vertical + horizontal splits | |
bind | split-window -h | |
bind - split-window -v | |
# act like vim | |
setw -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
# cycle on windows | |
bind -r C-h select-window -t :- | |
bind -r BSpace select-window -t :- | |
bind -r C-l select-window -t :+ | |
# Resize panes | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# handle the mouse | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
setw -g mouse-select-window on | |
# remove administrative debris (session name, hostname, time) in status bar | |
#set -g status-left '' | |
#set -g status-right '' | |
# increase scrollback lines | |
set -g history-limit 10000 | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left '#[fg=green]#H' | |
# Highlight active windows | |
set-window-option -g window-status-current-bg yellow | |
setw -g window-status-current-fg black | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Allow tmux to pass trough Ctrl, Alt and Shift modifiers | |
setw -g xterm-keys on | |
# Sending tmux's buffer to X buffer | |
# This is no longer used, replaced with xclip that works as well for vim | |
#bind-key > send-keys 'Enter' \; save-buffer /tmp/.tmux-exchange \; run-shell 'xsel -i < /tmp/.tmux-exchange; xsel -i -b < /tmp/.tmux-exchange' | |
## From: https://wiki.archlinux.org/index.php/Tmux#ICCCM_Selection_Integration | |
##CLIPBOARD selection integration | |
###Requires prefix key before the command key | |
##Copy tmux paste buffer to CLIPBOARD | |
bind C-c send-keys 'Enter' \; run "tmux show-buffer | xclip -i -selection clipboard" | |
##Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer | |
bind C-v run "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" | |
set-option -g bell-action any | |
set-option -g visual-bell off | |
#UTF-8 support | |
set-window-option -g utf8 on | |
# set shell | |
#set -g default-shell /usr/bin/fish | |
set -g default-command /usr/bin/zsh | |
set -g default-shell /usr/bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment