docs(shell): add function docstring comments

This commit is contained in:
2026-02-07 15:07:22 +02:00
parent 4266567327
commit 3ff83754b1
31 changed files with 135 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ if ! command -v sesh &>/dev/null; then
exit 0
fi
# Pick a sesh session using gum filter
pick_with_gum() {
sesh list -i \
| gum filter \
@@ -41,16 +42,19 @@ FZF_COMMON_OPTS=(
--preview 'sesh preview {}'
)
# Pick a sesh session using fzf-tmux popup
pick_with_fzf_tmux() {
sesh list --icons | fzf-tmux -p 80%,70% "${FZF_COMMON_OPTS[@]}"
return 0
}
# Pick a sesh session using fzf inline
pick_with_fzf() {
sesh list --icons | fzf "${FZF_COMMON_OPTS[@]}"
return 0
}
# Pick a sesh session using bash select menu
pick_with_select() {
local sessions
mapfile -t sessions < <(sesh list)