#!/bin/sh mkdir -p ~/tmp ~/codes ~/soft ~/bentoml ~/notebooks ~/x ~/j \ ~/.local/bin ~/.config ~/.local/dockerspace/gpu-devbox ~/.local/dockerspace/cpu-devbox MINRC=$(cat < ~/.min.rc echo ". ~/.min.rc" >> ~/.bashrc TMUXCONF=$(cat </dev/null && exec reattach-to-user-namespace -l "$SHELL" || exec "$SHELL"' set-option -g mouse on bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" # simulate tab set -g base-index 1 # Start numbering windows at 1, not 0. set -g pane-base-index 1 # Start numbering panes at 1, not 0. bind -n C-M-t new-window bind -n C-M-s next-window bind -n C-M-a previous-window set -g status-style "bg=default" set -g window-status-current-style "bg=default,reverse" set -g window-status-separator '' # No spaces between windows in the status bar. set -g window-status-format "#{?window_start_flag,, }#I:#W#{?window_flags,#F, } " set -g window-status-current-format "#{?window_start_flag,, }#I:#W#{?window_flags,#F, } " set -g status-left '' set -g status-right '' EOF ) echo "$TMUXCONF" > ~/.tmux.conf