From 5ff4d54ef9bebcb15b741cb0ebfa9c54c88ef0fd Mon Sep 17 00:00:00 2001 From: Kacper Marzecki Date: Mon, 17 Mar 2025 15:43:44 +0100 Subject: [PATCH] zsh adjustmets + tmux-td finally not closing on ESC! :) --- scripts/n | 4 ++-- scripts/td | 2 +- scripts/tmux-td | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/n b/scripts/n index bb7dbc7..0ffea84 100755 --- a/scripts/n +++ b/scripts/n @@ -1,3 +1,3 @@ -#!/bin/bash +#!/bin/zsh export NVIM_APPNAME=lazyvim -exec /home/linuxbrew/.linuxbrew/bin/nvim "$@" +exec nvim "$@" diff --git a/scripts/td b/scripts/td index bd802e4..1954a95 100755 --- a/scripts/td +++ b/scripts/td @@ -1,2 +1,2 @@ -#!/bin/bash +#!/bin/zsh node ~/git/td/dist/cli.js diff --git a/scripts/tmux-td b/scripts/tmux-td index 798a0c1..07ab828 100755 --- a/scripts/tmux-td +++ b/scripts/tmux-td @@ -1,12 +1,13 @@ -#!/bin/bash +#!/bin/zsh if ! tmux has-session -t td-cli 2>/dev/null; then - tmux new-session -d -s td-cli /home/omnissiah/installs/scripts/td + tmux setenv -g TD_TASK_DIR ~/git/tasks/ + tmux new-session -d -s td-cli ~/installs/scripts/td fi -if [ "$(tmux display-message -p -F "#{session_name}")" = "td-cli" ]; then +if [[ "$(tmux display-message -p -F "#{session_name}")" == "td-cli" ]]; then tmux detach-client tmux display-popup -C else - tmux display-popup -d -E -w90% -h90% 'tmux attach-session -x -t td-cli' + tmux display-popup -d -C -E -w90% -h90% 'tmux attach-session -x -f wait-exit -t td-cli' fi