mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-06 07:55:27 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
678466b898 | ||
| bd5eff8bce |
@@ -45,7 +45,7 @@ repos:
|
|||||||
- id: shfmt
|
- id: shfmt
|
||||||
|
|
||||||
- repo: https://github.com/rhysd/actionlint
|
- repo: https://github.com/rhysd/actionlint
|
||||||
rev: v1.7.9
|
rev: v1.7.10
|
||||||
hooks:
|
hooks:
|
||||||
- id: actionlint
|
- id: actionlint
|
||||||
|
|
||||||
|
|||||||
@@ -23,5 +23,7 @@ github.com/junegunn/fzf@latest
|
|||||||
golang.org/x/tools/gopls@latest
|
golang.org/x/tools/gopls@latest
|
||||||
// A language for writing HTML user interfaces in Go.
|
// A language for writing HTML user interfaces in Go.
|
||||||
github.com/a-h/templ/cmd/templ@latest
|
github.com/a-h/templ/cmd/templ@latest
|
||||||
|
// A tool for glamorous shell scripts 🎀
|
||||||
|
github.com/charmbracelet/gum@latest
|
||||||
// A terminal session manager
|
// A terminal session manager
|
||||||
github.com/joshmedeski/sesh/v2@latest
|
github.com/joshmedeski/sesh/v2@latest
|
||||||
|
|||||||
18
config/tmux/sesh-gum.sh
Executable file
18
config/tmux/sesh-gum.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Get session list and pipe it to gum for selection
|
||||||
|
SESH_LIST=$(
|
||||||
|
sesh list -i \
|
||||||
|
| gum filter \
|
||||||
|
--limit 1 \
|
||||||
|
--no-sort \
|
||||||
|
--fuzzy \
|
||||||
|
--placeholder 'Pick a sesh' \
|
||||||
|
--height 50 \
|
||||||
|
--prompt='⚡'
|
||||||
|
)
|
||||||
|
|
||||||
|
# If a session was selected, connect to it
|
||||||
|
if [ "$SESH_LIST" != "" ]; then
|
||||||
|
sesh connect "$SESH_LIST"
|
||||||
|
fi
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
# -u : Unset the specified option.
|
# -u : Unset the specified option.
|
||||||
|
|
||||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
set -ag terminal-features 'xterm-256color:RGB'
|
|
||||||
|
|
||||||
# Enable proper color support
|
# Enable proper color support
|
||||||
set -as terminal-features ",*:RGB"
|
set -as terminal-features ",*:RGB"
|
||||||
@@ -30,14 +29,6 @@ set -g set-titles on # Allow tmux to set the terminal title
|
|||||||
set -g status on # Setting status on
|
set -g status on # Setting status on
|
||||||
set -g status-keys vi # vi keys to move between panes
|
set -g status-keys vi # vi keys to move between panes
|
||||||
|
|
||||||
# Activity Monitoring (for when something happens in another pain)
|
|
||||||
set -g monitor-activity on
|
|
||||||
set -g visual-activity off
|
|
||||||
set -g visual-bell off
|
|
||||||
|
|
||||||
# A bell in another window should cause a bell in the current window
|
|
||||||
set -g bell-action any
|
|
||||||
|
|
||||||
# Keep Tmux alive when the initial command is finished
|
# Keep Tmux alive when the initial command is finished
|
||||||
set -g remain-on-exit off
|
set -g remain-on-exit off
|
||||||
|
|
||||||
@@ -50,7 +41,8 @@ set -g renumber-windows on
|
|||||||
# │ Theme │
|
# │ Theme │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
set -g status-justify "left"
|
set -g status-bg default
|
||||||
|
set -g status-justify left
|
||||||
set -g status-left ''
|
set -g status-left ''
|
||||||
set -g status-left-length "0"
|
set -g status-left-length "0"
|
||||||
set -g status-position "bottom"
|
set -g status-position "bottom"
|
||||||
@@ -60,7 +52,6 @@ set -g status-right-length "50"
|
|||||||
#set -g window-status-format ' #I:#W '
|
#set -g window-status-format ' #I:#W '
|
||||||
set -g @catppuccin_status_background 'none'
|
set -g @catppuccin_status_background 'none'
|
||||||
set -g @catppuccin_window_flags 'icon'
|
set -g @catppuccin_window_flags 'icon'
|
||||||
set -g @catppuccin_status_connect_separator 'no'
|
|
||||||
set -g @catppuccin_window_text "#T"
|
set -g @catppuccin_window_text "#T"
|
||||||
set -g @catppuccin_window_current_text "#T"
|
set -g @catppuccin_window_current_text "#T"
|
||||||
|
|
||||||
@@ -97,7 +88,7 @@ unbind p
|
|||||||
bind p paste-buffer
|
bind p paste-buffer
|
||||||
|
|
||||||
# global sessions
|
# global sessions
|
||||||
bind -N "sesh selection" t run-shell "$HOME/.dotfiles/config/tmux/sesh-tmux.fish"
|
bind -N "sesh selection" t display-popup -E "$HOME/.dotfiles/config/tmux/sesh-gum.sh"
|
||||||
bind -N "last-session (via sesh) " L run-shell "sesh last"
|
bind -N "last-session (via sesh) " L run-shell "sesh last"
|
||||||
bind -N "sesh ui" N display-popup -E "sesh ui"
|
bind -N "sesh ui" N display-popup -E "sesh ui"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user