Skip to content

Commit

Permalink
reset tmux style
Browse files Browse the repository at this point in the history
  • Loading branch information
manbaaaa committed May 11, 2024
1 parent 8ca18b3 commit fb17c01
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ my settings for dotfiles(vim zsh .etc)
```console
./setup.sh
```


vim plugin install: :PluginInstall
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else
fi

# 3. python3-pip clang ctags
# see scripts/install_pkg.sh
see scripts/install_pkg.sh

# 4. set paths
ln -sf $CURRENT_DIR/vim/vimrc $HOME/.vimrc
Expand Down
4 changes: 2 additions & 2 deletions tmux/mylayout
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
selectp -t 0 #选中第0个窗格
splitw -h -l 50 #将其分成左右两个
splitw -h #将其分成左右两个
selectp -t 1 #选中第一个,也就是右边那个
splitw -v -l 50 #将其分成上下两个,这样就变成了图中的布局了
splitw -v #将其分成上下两个,这样就变成了图中的布局了
selectp -t 0 #选回第一个
26 changes: 14 additions & 12 deletions tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,14 @@
# -------------------------------------------------------------------------------
set -g @plugin 'https://github.com/tmux-plugins/tpm'
set -g @plugin 'https://github.com/tmux-plugins/tmux-sensible'
set -g @plugin 'https://github.com/tmux-plugins/tmux-sidebar'
# https://draculatheme.com/tmux
set -g @plugin 'dracula/tmux'
set -g @plugin 'https://github.com/thewtex/tmux-mem-cpu-load'
set -g @plugin 'https://github.com/tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'https://github.com/tmux-plugins/tmux-resurrect'
set -g @plugin 'https://github.com/tmux-plugins/tmux-continuum'
set -g @plugin 'https://github.com/schasse/tmux-jump'
set -g @plugin 'https://github.com/tmux-plugins/tmux-copycat'
set -g @plugin 'https://github.com/tmux-plugins/tmux-pain-control'

# dracula setting
set -g @dracula-plugins "cpu-usage gpu-usage ram-usage git time"
set -g @dracula-show-powerline true
set -g @dracula-show-time true
set -g @dracula-cpu-usage true
set -g @dracula-ram-usage true
set -g @dracula-gpu-usage true
set -g @dracula-refresh-rate 2
set -g @plugin 'https://github.com/tmux-plugins/tmux-net-speed'

# mouse
set-option -g mouse on
Expand Down Expand Up @@ -77,6 +67,18 @@ set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on

# Status bar
set -g status on
set -g status-left-length 120
set -g status-right-length 120
set -g set-titles on
set -g set-titles-string "[#S] #I:#W"
set -g status-bg "#657b83"
set -g status-fg white
set-option -g status-justify centre
set -g status-right " | #{net_speed} | #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --interval 2 --cpu-mode 1)"
set -g status-left '#[fg=cyan][#{session_name}] #{prefix_highlight} | #[fg=cyan,bg=default,nobright]%a-%Y-%m-%d-%H:%M:%S #[fg=default,noblink]| Continuum status: #{continuum_status} | '

# window
setw -g automatic-rename off
set-option -g allow-rename off
Expand Down
4 changes: 2 additions & 2 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Plug 'https://github.com/preservim/nerdtree' |
" Plug 'https://github.com/ryanoasis/vim-devicons'
" Plug 'https://github.com/ryanoasis/nerd-fonts.git' cd zsh && ./install.sh
Plug 'https://github.com/tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'https://github.com/scrooloose/nerdtree-project-plugin'
" Plug 'https://github.com/scrooloose/nerdtree-project-plugin'
Plug 'https://github.com/PhilRunninger/nerdtree-visual-selection'
" fuzzy file finder
Plug 'https://github.com/junegunn/fzf'
Expand Down Expand Up @@ -541,4 +541,4 @@ xmap <Leader>di <Plug>VimspectorBalloonEval
nmap <Leader><F11> <Plug>VimspectorUpFrame
nmap <Leader><F12> <Plug>VimspectorDownFrame
nmap <Leader>B <Plug>VimspectorBreakpoints
nmap <Leader>D <Plug>VimspectorDisassemble
nmap <Leader>D <Plug>VimspectorDisassemble

0 comments on commit fb17c01

Please sign in to comment.