✨ update tmux:vim-bindings + roadmap
This commit is contained in:
parent
3e2dc961e5
commit
a8ece93185
2 changed files with 42 additions and 4 deletions
39
.tmux.conf
39
.tmux.conf
|
|
@ -1,8 +1,45 @@
|
||||||
# remap prefix from ^+A to ^+B
|
# colors
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
|
|
||||||
|
# remap prefix from ^+A to ^+B (for nested tmux sessions)
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-a
|
set -g prefix C-a
|
||||||
bind C-a send-prefix
|
bind C-a send-prefix
|
||||||
|
|
||||||
|
# enable mouse selection
|
||||||
|
# Note: may break OSX copy/paste
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# extend history
|
||||||
|
set -g history-limit 100000
|
||||||
|
|
||||||
# set vi keybindings
|
# set vi keybindings
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
# reduce escape time
|
||||||
|
set-option -sg escape-time 20
|
||||||
|
|
||||||
|
# pane movement shortcuts
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
# window selection
|
||||||
|
bind -r C-h select-window -t :-
|
||||||
|
bind -r C-l select-window -t :+
|
||||||
|
|
||||||
|
# Resize pane shortcuts
|
||||||
|
bind -r H resize-pane -L 10
|
||||||
|
bind -r J resize-pane -D 10
|
||||||
|
bind -r K resize-pane -U 10
|
||||||
|
bind -r L resize-pane -R 10
|
||||||
|
|
||||||
|
# split with dash and vbar
|
||||||
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# server-tmux only:
|
||||||
|
# fix ssh agent when tmux is detached
|
||||||
|
# setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,9 @@ This repo is an extension of [dannydannydanny/methodology](https://github.com/Da
|
||||||
* extend *makefile*:
|
* extend *makefile*:
|
||||||
* **low-level configs:** config zsh, config nvim, config tmux-local, config tmux-remote
|
* **low-level configs:** config zsh, config nvim, config tmux-local, config tmux-remote
|
||||||
* **machine level config:** config mac local machine, config ubuntu local machine, config ubuntu server
|
* **machine level config:** config mac local machine, config ubuntu local machine, config ubuntu server
|
||||||
* configure **tmux**:
|
* [ ] configure **tmux**:
|
||||||
* [X] remote nested sessions
|
* [X] remote nested sessions
|
||||||
* [ ] change tmux:pane-switching bindings from arrow keys to vim bindings
|
* [X] change tmux:pane-switching bindings from arrow keys to vim bindings
|
||||||
* music config:
|
* [ ] music config:
|
||||||
* mpd, mpc, ncmpcpp ([Mac guide](https://killtheyak.com/install-mpd-mpc-ncmpcpp/), [config guide for mac](https://computingforgeeks.com/install-configure-mpd-ncmpcpp-macos/))
|
* mpd, mpc, ncmpcpp ([Mac guide](https://killtheyak.com/install-mpd-mpc-ncmpcpp/), [config guide for mac](https://computingforgeeks.com/install-configure-mpd-ncmpcpp-macos/))
|
||||||
|
* test on new machine with music dir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue