tmux+starship tweaks

This commit is contained in:
Henrik Bakken
2026-10-08 20:49:53 +02:00
parent 10b67325e8
commit f19d8c4f15
2 changed files with 19 additions and 17 deletions
+14 -6
View File
@@ -1,5 +1,5 @@
add_newline = true
right_format = """$cmd_duration"""
right_format = """$cmd_duration\n"""
[line_break]
disabled = false
@@ -8,17 +8,25 @@ disabled = false
disabled = false
[cmd_duration]
min_time = 1000
format = 'underwent [$duration](bold yellow)'
show_milliseconds = true
disabled = true
[directory]
truncation_length = 5
truncate_to_repo = false
truncation_symbol = '…/'
truncation_symbol = "…/"
repo_root_style = "red"
before_repo_root_style = "cyan"
repo_root_format = '[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) '
repo_root_format = """\
[$before_root_path]\
($before_repo_root_style)\
[$repo_root]\
($repo_root_style)\
[$path]\
($style)\
[$read_only]\
($read_only_style)\
\
"""
[git_status]
disabled = true
+5 -11
View File
@@ -60,11 +60,6 @@ set -g set-titles on
######################
### KEYBINDS ###
######################
# Config that is very close to a i3 window manager's keybinding.
# Set new prefix
# Note : you can press super key by set M.
# (tested with tty only)
set -g prefix M-a
# First remove *all* keybindings
@@ -85,15 +80,15 @@ bind-key -n End send-keys "\033[F"
# Copy mode
bind c copy-mode
# clipboard control
bind p paste-buffer
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi y send-keys -X copy-selection
bind -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi V send-keys -X select-line
bind -T copy-mode-vi Escape send-keys -X clear-selection
bind -T copy-mode-vi q send-keys -X cancel
bind -T copy-mode-vi Y send-keys -X copy-end-of-line
bind -T copy-mode-vi r send-keys -X rectangle-toggle
bind -T copy-mode-vi Escape send-keys -X cancel
bind -T copy-mode-vi q send-keys -X clear-selection
# Rename window
bind , command-prompt "rename-window %%"
@@ -194,7 +189,6 @@ bind b send-keys -R \; clear-history \; send-keys Enter
# various plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
######################