all repos

tmux-stare @ 29a70cd

session manager, but my session manager
2 files changed, 6 insertions(+), 5 deletions(-)
fix session restore
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-04-14 21:53:05 +0300
Authored at: 2026-04-14 17:29:00 +0300
Change ID: usmksszmwwrxpuzupkswknnowyquvpvx
Parent: e6417dc
M scripts/sessions.sh
···
        351
        351
         

      
        352
        352
           start_spinner "Restoring session $session_name"

      
        353
        353
         

      
        354
        
        -  local session_path="$(head -n1 | cut -d"$SEPARATOR" -f2)"

      
        
        354
        +  local session_path="$(head -n1)"

      
        
        355
        +  [[ -n "$session_path" ]] || session_path="$HOME"

      
        355
        356
           tmux new-session -ds "$session_name" -c "$session_path"

      
        356
        357
         

      
        357
        358
           declare -A window_layouts

      
M stare.tmux
···
        15
        15
         

      
        16
        16
         main() {

      
        17
        17
           local pick_key="$(get_opt_pick)"

      
        18
        
        -  [[ -n "$pick_key" ]] && tmux bind-key "$pick_key" run-shell "$CURRENT_DIR/scripts/_pick.sh"

      
        
        18
        +  [[ -n "$pick_key" ]] && tmux bind-key "$pick_key" run-shell "bash \"$CURRENT_DIR/scripts/_pick.sh\""

      
        19
        19
         

      
        20
        20
           local save_key="$(get_opt_save)"

      
        21
        
        -  [[ -n "$save_key" ]] && tmux bind-key "$save_key" run-shell "$CURRENT_DIR/scripts/_save.sh"

      
        
        21
        +  [[ -n "$save_key" ]] && tmux bind-key "$save_key" run-shell "bash \"$CURRENT_DIR/scripts/_save.sh\""

      
        22
        22
         

      
        23
        23
           local start_action="$(get_opt_start)"

      
        24
        24
           if [[ "$(get_opt_initialized)" == "0" ]]; then

      
        25
        25
             if [[ "$start_action" == "last" ]]; then

      
        26
        
        -      tmux run-shell -b "sleep 0.1 && '$CURRENT_DIR/scripts/_restore.sh'"

      
        
        26
        +      tmux run-shell -b "sleep 0.1 && bash \"$CURRENT_DIR/scripts/_restore.sh\""

      
        27
        27
             elif [[ "$start_action" == "pick" ]]; then

      
        28
        
        -      tmux run-shell -b "sleep 0.1 && '$CURRENT_DIR/scripts/_pick.sh'"

      
        
        28
        +      tmux run-shell -b "sleep 0.1 && bash \"$CURRENT_DIR/scripts/_pick.sh\""

      
        29
        29
             fi

      
        30
        30
         

      
        31
        31
             set_opt_initialized "1"