Skip to content

Instantly share code, notes, and snippets.

@mizlan
Created January 8, 2021 02:20
Show Gist options
  • Save mizlan/f9942238719c34fa2a76612eba286578 to your computer and use it in GitHub Desktop.
Save mizlan/f9942238719c34fa2a76612eba286578 to your computer and use it in GitHub Desktop.
set-option -g prefix C-g
unbind-key C-g
bind-key C-g send-prefix
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"
set-option -g status-position bottom
set -g base-index 1
set -s escape-time 0
set -g status-left ' '
set -g status-right ''
set -g status-fg default
set -g status-bg default
setw -g window-status-current-format '#[underscore,bold]#I #W'
setw -g window-status-format '#I #W'
bind-key R source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind-key v split-window -h
bind-key s split-window -v
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
#
# zsh prompt
#
# theme color
export THEME_COLOR='green'
export THEME_COLOR_BG_JOBS='14'
# newline character, if needed
NEWLINE=$'\n'
# transient right-prompt
setopt TRANSIENT_RPROMPT
# prompt substitution
setopt PROMPT_SUBST
RIGHT_BG='8'
RIGHT_FG='7'
# parts of the left prompt
LEFT_SECTION='${IN_GIT}'
RIGHT_SECTION='%2~'
# {exit code}
export RPROMPT='%1(j.%F{$THEME_COLOR_BG_JOBS}.%F{$THEME_COLOR}){%f%?%1(j.%F{$THEME_COLOR_BG_JOBS}.%F{$THEME_COLOR})}%f'
precmd() {
IN_GIT=$(git rev-parse --is-inside-work-tree >/dev/null 2>&1 && echo "" || echo "")
export PROMPT='%k%1(j.%F{$THEME_COLOR_BG_JOBS}.%F{$THEME_COLOR})%F{0}%1(j.%K{$THEME_COLOR_BG_JOBS}.%K{$THEME_COLOR})${IN_GIT}%K{$RIGHT_BG}%1(j.%F{$THEME_COLOR_BG_JOBS}.%F{$THEME_COLOR})%F{$RIGHT_FG} ${RIGHT_SECTION}%F{$RIGHT_BG}%k%f '
}
window:
padding:
x: 5
y: 5
dynamic_padding: true
decorations: full
title: a
dynamic_title: true
font:
normal:
family: MesloLGM Nerd Font Mono
size: 21.0
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
draw_bold_text_with_bright_colors: true
# Nord:
colors:
primary:
background: '#2e3440'
foreground: '#d8dee9'
dim_foreground: '#a5abb6'
cursor:
text: '#2e3440'
cursor: '0xf81894'
vi_mode_cursor:
text: '#2e3440'
cursor: '#d8dee9'
selection:
text: CellForeground
background: '#4c566a'
search:
matches:
foreground: CellBackground
background: '#88c0d0'
bar:
background: '#434c5e'
foreground: '#d8dee9'
normal:
black: '#3b4252'
red: '#bf616a'
green: '#a3be8c'
yellow: '#ebcb8b'
blue: '#81a1c1'
magenta: '#b48ead'
cyan: '#88c0d0'
white: '#e5e9f0'
bright:
black: '#4c566a'
red: '#bf616a'
green: '#a3be8c'
yellow: '#ebcb8b'
blue: '#81a1c1'
magenta: '#b48ead'
cyan: '#8fbcbb'
white: '#eceff4'
dim:
black: '#373e4d'
red: '#94545d'
green: '#809575'
yellow: '#b29e75'
blue: '#68809a'
magenta: '#8c738c'
cyan: '#6d96a5'
white: '#aeb3bb'
bell:
animation: EaseOutSine
duration: 100
color: '#f2b8c5'
background_opacity: 1
cursor:
style: Block
unfocused_hollow: true
thickness: 0.1
live_config_reload: true
shell:
program: /usr/local/bin/fish
args:
- --login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment