dot

packages and services management
Log | Files | Refs | README

commit 63b71af11b75ce690f5174a7317f10c02d0a500f
parent 13e9a98733e5406e011e0a50c8a5be5350bf0c69
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 11 Dec 2017 00:53:09 +0100

simpler tmux.conf layout

Diffstat:
Mdot/exrc | 1-
Mdot/profile | 2+-
Mdot/tmux.conf | 154++++++++++++++++++++++++++++++++-----------------------------------------------
Ddot/vim/vimrc | 27---------------------------
4 files changed, 63 insertions(+), 121 deletions(-)

diff --git a/dot/exrc b/dot/exrc @@ -1,4 +1,3 @@ set ruler -set showmatch map g 1G map q :q diff --git a/dot/profile b/dot/profile @@ -25,7 +25,7 @@ export LC_TIME=en_US.UTF-8 export ABDUCO_SOCKET_DIR="$HOME/.cache" -export LESS="-~R" +export LESS="-~RN" export BLIH="josuah.demangeon@epitech.eu" export CVSROOT="anoncvs@anoncvs.fr.openbsd.org:/cvs" diff --git a/dot/tmux.conf b/dot/tmux.conf @@ -1,92 +1,62 @@ -# --- keybindings -------------------------------------------------------------- - -# leader - -set -g prefix C-Space -unbind C-b -bind C-Space send-key C-Space - -# copy mode - -bind -n PPage if -F '#{alternate_on}' 'send PPage' 'copy -e; send PPage' - -# pane management - -bind -r k select-pane -U -bind -r j select-pane -D -bind -r h select-pane -L -bind -r l select-pane -R -bind -r o select-pane -t :.+ -bind -r C-k resize-pane -U 2 -bind -r C-j resize-pane -D 2 -bind -r C-h resize-pane -L 5 -bind -r C-l resize-pane -R 5 - -# window management - -bind -r < swap-window -t - -bind -r > swap-window -t + -bind -r p previous-window -bind -r n next-window -bind -r Tab last-window -bind -r c new-window -c '#{pane_current_path}' -bind -r C new-window - -# global tmux state - -bind -n C-z detach -bind r source ~/.tmux.conf\; display "Config loaded" - -# --- options ------------------------------------------------------------------ - -set -g base-index 1 -set -g pane-base-index 1 -set -g renumber-windows on -set -g display-time 2000 -set -g repeat-time 500 -set -g detach-on-destroy off - -# global appearance - -set -g message-style bold,fg=red -set -g message-command-style bold,fg=white - -set -g display-panes-colour white -set -g display-panes-active-colour red - -set -g clock-mode-colour white -set -g clock-mode-style 24 - -set -g mode-style bg=white,fg=black - -# status - -set -g status-interval 5 - -set -g status-position top -set -g status-justify left -set -g status-style bg=black,fg=white - -set -g status-left-length 30 -set -g status-left-style fg=white -set -g status-left "#[fg=black,bg=white] #S #[default] " - -set -g status-right-length 100 -set -g status-right-style fg=white -set -g status-right "#(status)" - -set -g window-status-separator " " - -set -g window-status-style bold,fg=black -set -g window-status-format " #I #W " - -set -g window-status-current-style bold,fg=white -set -g window-status-current-format " #I #W " - -set -g window-status-bell-style fg=white,bg=red -set -g window-status-activity-style fg=white,bg=yellow - -# borders - -set -g pane-border-style fg=#ffffff -set -g pane-active-border-style fg=#ff0000 +set -g prefix C-Space +unbind C-b +bind C-Space send-key C-Space + +bind -n PPage if -F '#{alternate_on}' 'send PPage' 'copy -e; send PPage' + +bind -r k select-pane -U +bind -r j select-pane -D +bind -r h select-pane -L +bind -r l select-pane -R +bind -r o select-pane -t :.+ +bind -r C-k resize-pane -U 2 +bind -r C-j resize-pane -D 2 +bind -r C-h resize-pane -L 5 +bind -r C-l resize-pane -R 5 + +bind -r < swap-window -t - +bind -r > swap-window -t + +bind -r p previous-window +bind -r n next-window +bind -r Tab last-window +bind -r c new-window +bind -r C new-window -c '#{pane_current_path}' + +bind -n C-z detach +bind r source ~/.tmux.conf\; display "Config loaded" + +set -g base-index 1 +set -g pane-base-index 1 +set -g renumber-windows on +set -g display-time 2000 +set -g repeat-time 500 +set -g detach-on-destroy off +set -g message-style bold,fg=red +set -g message-command-style bold,fg=white + +set -g display-panes-colour white +set -g display-panes-active-colour red + +set -g clock-mode-colour white +set -g clock-mode-style 24 + +set -g mode-style bg=white,fg=black + +set -g status-interval 5 +set -g status-position top +set -g status-justify left +set -g status-style bg=black,fg=white +set -g status-left-length 30 +set -g status-left-style fg=white +set -g status-left "#[fg=black,bg=white] #S #[default] " +set -g status-right-length 100 +set -g status-right-style fg=white +set -g status-right "#(status)" + +set -g window-status-separator " " +set -g window-status-style bold,fg=black +set -g window-status-format " #I #W " +set -g window-status-current-style bold,fg=white +set -g window-status-current-format " #I #W " +set -g window-status-bell-style fg=white,bg=red +set -g window-status-activity-style fg=white,bg=yellow diff --git a/dot/vim/vimrc b/dot/vim/vimrc @@ -1,27 +0,0 @@ -syntax off - -set encoding=utf8 -set list listchars=tab:\|\ ,trail:%,extends:>,precedes:<,nbsp:_ -set ruler rulerformat=%15(%4l:%v%=%P%) -set scrolloff=3 -set colorcolumn=81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99 -set incsearch -set noswapfile -set viminfo+=n~/.vim/viminfo -set titlestring="" -set showcmd - -highlight statusline ctermbg=none ctermfg=7 cterm=bold -highlight statuslinenc ctermbg=none ctermfg=none cterm=bold -highlight colorcolumn ctermbg=none ctermfg=1 cterm=none -highlight search ctermbg=3 ctermfg=0 cterm=none -highlight visual ctermbg=7 ctermfg=0 cterm=none -highlight modemsg ctermbg=none ctermfg=7 cterm=bold -highlight linenr ctermbg=none ctermfg=241 cterm=none -highlight nontext ctermbg=none ctermfg=238 cterm=none -highlight specialkey ctermbg=none ctermfg=238 cterm=none - -nmap coh :set hlsearch!<cr>:set hlsearch?<cr> -nmap col :set list !<cr>:set list ?<cr> -nmap cop :set paste !<cr>:set paste ?<cr> -nmap con :set number !<cr>:set number ?<cr>