summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ar/.config/sesh/sesh.toml11
-rwxr-xr-xar/.local/bin/sessionizer2
2 files changed, 12 insertions, 1 deletions
diff --git a/ar/.config/sesh/sesh.toml b/ar/.config/sesh/sesh.toml
index 17e6085..349c5ba 100644
--- a/ar/.config/sesh/sesh.toml
+++ b/ar/.config/sesh/sesh.toml
@@ -1,3 +1,10 @@
+sort_order = [
+ "tmuxinator", # show first
+ "tmux",
+ "config",
+ "zoxide", # show last
+]
+
[default_session]
startup_command = "if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git status; else clear && ls -I .git; fi"
preview_command = "eza -glaa --icons --group-directories-first --color=always {}"
@@ -41,3 +48,7 @@ path = "~/.local/bin"
[[session]]
name = "suckless"
path = "~/.local/src/suckless"
+
+[[window]]
+name = "git"
+startup_script = "git pull"
diff --git a/ar/.local/bin/sessionizer b/ar/.local/bin/sessionizer
index eca845c..465dcf8 100755
--- a/ar/.local/bin/sessionizer
+++ b/ar/.local/bin/sessionizer
@@ -2,7 +2,7 @@
sessionizer() {
path="$(
- sesh list -c -H | fzf-tmux \
+ sesh list --icons | fzf-tmux \
-p 80%,70% --no-sort --cycle --ignore-case --ansi --border=sharp --multi --reverse \
--border-label "╢ TheSiahxyz ╟" \
--header "^a all ^e sesh ^f zoxide ^g git ^t tmux ^u staged files ^x tmux kill M-cr open in editor ^/ help" \