This commit is contained in:
2026-02-12 23:21:20 +02:00
parent 93167fbcb6
commit 88676a5f08
3 changed files with 16 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ bind C-Space send-prefix
set -s escape-time 10 set -s escape-time 10
set -s focus-events on set -s focus-events on
set -s set-clipboard on set -s set-clipboard on
set -g allow-passthrough on
# set -g default-command "${SHELL}" # set -g default-command "${SHELL}"
set -g base-index 1 # window index set -g base-index 1 # window index
@@ -28,7 +29,8 @@ set -gw pane-base-index 1 # pane index
set -g status-style fg=black,bg=default set -g status-style fg=black,bg=default
set -g window-status-current-style fg=blue,bold set -g window-status-current-style fg=blue,bold
set -g message-style fg=blue,bg=default set -g message-style fg=blue,bg=default
set -g status-left "#[fg=blue,bold][#{s/^dev-//:#{session_name}}] " # set -g status-left "#[fg=blue,bold][#{s/^dev-//:#{session_name}}] "
set -g status-left "#[fg=blue,bold][#{s/^(dev-)?[0-9][0-9]_//:#{session_name}}] "
set -g status-right " #{?DF_IMAGE,#{DF_IMAGE} | ,}#{?DF_NAMESPACE,#{DF_NAMESPACE},#H}@#{?DF_PLATFORM,#{DF_PLATFORM},local}" set -g status-right " #{?DF_IMAGE,#{DF_IMAGE} | ,}#{?DF_NAMESPACE,#{DF_NAMESPACE},#H}@#{?DF_PLATFORM,#{DF_PLATFORM},local}"
set -g status-left-length 50 set -g status-left-length 50
set -g status-right-length 50 set -g status-right-length 50
@@ -53,6 +55,8 @@ bind -n M-l resize-pane -R 5
# Last window instead of session # Last window instead of session
bind ';' last-window bind ';' last-window
# Open session
unbind '"' unbind '"'
unbind "%" unbind "%"
unbind s unbind s
@@ -62,8 +66,13 @@ unbind x
bind s split-window -v -c "#{pane_current_path}" bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}" bind v split-window -h -c "#{pane_current_path}"
bind o choose-session
bind n new-window # For some reason, choose-session is what I had before and it was working; however,
# it does not appear in man page and does not allow customization
# bind o choose-session
bind o choose-tree -s -O name
bind N new-window
bind n new-window -c "#{pane_current_path}"
bind c confirm-before -p "kill-pane \#P? (y/n)" kill-pane bind c confirm-before -p "kill-pane \#P? (y/n)" kill-pane
##### Misc ##### ##### Misc #####

View File

@@ -80,3 +80,6 @@ alias gd='git diff --patience --color-moved=dimmed-zebra --word-diff=plain --fun
alias glg='git log --oneline --graph --decorate --all' alias glg='git log --oneline --graph --decorate --all'
alias k='kubectl' alias k='kubectl'
# opencode
export PATH=/home/tomas/.opencode/bin:$PATH