From 1dfa877f18b3673999ac7141d388ad0790b85a55 Mon Sep 17 00:00:00 2001 From: Technofab <34860318+TECHNOFAB11@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:08:23 +0100 Subject: [PATCH] Update current.sh --- scripts/current.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/current.sh b/scripts/current.sh index eaf220f..5c13f68 100755 --- a/scripts/current.sh +++ b/scripts/current.sh @@ -1,14 +1,18 @@ #!/usr/bin/env bash +current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +source "$current_dir"/utils.sh + start_icon=$(get_tmux_option "@tmux2k-start-icon" "session") main() { + current="" case $start_icon in - session) start_icon=" #S" ;; - window) start_icon=" #W" ;; + session) current=" #S" ;; + window) current=" #W" ;; esac - echo "$start_icon" + echo "$current" } main