Skip to content

Instantly share code, notes, and snippets.

@MalikAbuShabab
Last active April 18, 2020 16:09
Show Gist options
  • Save MalikAbuShabab/9703c488f5b9364f8bd5df0f018e8b0c to your computer and use it in GitHub Desktop.
Save MalikAbuShabab/9703c488f5b9364f8bd5df0f018e8b0c to your computer and use it in GitHub Desktop.
tmux.conf
# Our .tmux.conf file
# Setting the prefix from C-b to C-a
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -sg escape-time 1
# Ensure that we can send Ctrl-A to other apps
bind C-a send-prefix
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Set the default terminal mode to 256color mode
set -g default-terminal "screen-256color"
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# set the status line's colors
set -g status-fg white
set -g status-bg black
# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# Status line right side
# 15% | 28 Nov 18:15
set -g status-right "#(~/battery Discharging) | #[fg=cyan]%d %b %R"
# Update the status bar every sixty seconds
set -g status-interval 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment