Last active
January 27, 2020 18:09
-
-
Save DallasO/b69fd380d841d3dc3bf4f48710715056 to your computer and use it in GitHub Desktop.
Config for tmux. Save as ~/.tmux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Fix broken colored prompt - This doesn't work with MacOs? | |
set -g default-terminal "tmux-256color" | |
# Open a bottom pane to edit .tmux.conf | |
bind-key M split-window -v "nano ~/.tmux.conf" | |
# Reload .tmux.conf | |
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
# Optional | |
# Use $PWD when opening new windows/panes | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
# Open new window in $HOME dir | |
bind C new-window | |
## Add this alias to ~/.bashrc to open specific windows/panes when launching tmux | |
# ## tmux | |
# alias tmux='tmux new-session \; \ | |
# new-window -t 0 'htop' \; \ | |
# send-keys 'htop' C-m \; \ | |
# select-window -t 1 \;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment