Add modules to copy.sh

Add tpm to tmux
This commit is contained in:
Sage Vaillancourt 2023-09-27 12:12:29 -04:00
parent 3d2fb260c3
commit 589ebcfca6
4 changed files with 16 additions and 4 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "fake_home/.tmux/plugins/tpm"]
path = fake_home/.tmux/plugins/tpm
url = https://github.com/tmux-plugins/tpm.git

View File

@ -2,6 +2,8 @@
# Install required packages
if [[ "$1" != "--install" ]]; then
git submodule init
git submodule update
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
FAKE_HOME="$SCRIPT_DIR/fake_home"

View File

@ -1,15 +1,19 @@
# set -g default-terminal "screen-255color"
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g default-shell /usr/bin/zsh
set-option -g default-terminal "screen-256color"
set -g status-right "# %A, %d %b %Y - %I:%M %p "
set -g status-bg blue
set -g status-fg black
set -g status-bg black
set -g status-fg blue
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
@ -34,3 +38,5 @@ bind-key -T copy-mode-vi 'C-\' select-pane -l
setw -g window-status-current-style fg=blue,bg=black
setw -g window-status-current-format ' #I #{s|/home/sagevaillancourt|~|:pane_current_path} #W#F '
setw -g window-status-format ' #I #{s|/home/sagevaillancourt|~|:pane_current_path} #W#F '
run '~/.tmux/plugins/tpm/tpm'

@ -0,0 +1 @@
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946