Skip to content

Commit 08d6276

Browse files
committed
Merge branch 'main' into develop
2 parents 3018a21 + 8917578 commit 08d6276

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Every .sh file can independent work.
1818
If you want to setup all the setting, run:
1919

2020
```shell
21-
chomd +x ./all_setup.sh
21+
chmod +x ./all_setup.sh
2222
./all_setup.sh
2323
```
2424

config/.tmux.conf

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
### rebind hotkey
2+
3+
# prefix setting (screen-like)
4+
set -g prefix C-a
5+
unbind C-b
6+
bind C-a send-prefix
7+
8+
# reload config without killing server
9+
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
10+
11+
# "|" splits the current window vertically, and "-" splits it horizontally
12+
unbind %
13+
bind | split-window -h
14+
bind - split-window -v
15+
16+
# Pane navigation (vim-like)
17+
bind h select-pane -L
18+
bind j select-pane -D
19+
bind k select-pane -U
20+
bind l select-pane -R
21+
22+
# Pane resizing
23+
bind -r Left resize-pane -L 1
24+
bind -r Down resize-pane -D 1
25+
bind -r Up resize-pane -U 1
26+
bind -r Right resize-pane -R 1
27+
28+
29+
### other optimization
30+
31+
# set the shell you like (zsh, "which zsh" to find the path)
32+
# set -g default-command /bin/zsh
33+
# set -g default-shell /bin/zsh
34+
35+
# use UTF8
36+
# set -g utf8
37+
# set-window-option -g utf8 on
38+
39+
# display things in 256 colors
40+
set -g default-terminal "screen-256color"
41+
42+
# mouse is great!
43+
set-option -g mouse on
44+
45+
# history size
46+
set -g history-limit 10000
47+
48+
# fix delay
49+
set -g escape-time 0
50+
51+
# 0 is too far
52+
set -g base-index 1
53+
setw -g pane-base-index 1
54+
55+
# stop auto renaming
56+
setw -g automatic-rename off
57+
set-option -g allow-rename off
58+
59+
# renumber windows sequentially after closing
60+
set -g renumber-windows on
61+
62+
# window notifications; display activity on other window
63+
setw -g monitor-activity on
64+
set -g visual-activity on
65+

0 commit comments

Comments
 (0)