diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-09 19:00:21 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-09 19:00:21 +0900 |
| commit | 0572779eb7a98ecd7dd8e60709fda112e3bdbc44 (patch) | |
| tree | b507a882603861ceecd3eca77c28eb8e15608b68 /ar/.config | |
| parent | 95c766c4814a1387a9876bb34cf493b45cb9b070 (diff) | |
modified zsh/scripts.zsh, modified bin/opensessions, modified zsh/scripts.zsh, modified bin/opensessions
Diffstat (limited to 'ar/.config')
| -rw-r--r-- | ar/.config/zsh/scripts.zsh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index 5a47ffa..d70522d 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -390,9 +390,13 @@ EOF ) [[ -z "${SELECTED_DIRS// }" ]] && return if [[ "$(echo "$SELECTED_DIRS" | wc -l)" -eq 1 ]]; then - cd "$SELECTED_DIRS" - if [[ -n "$(git -C "$SELECTED_DIRS" status --porcelain)" ]]; then - git status --porcelain 2>/dev/null + if [[ -n "$TMUX" ]]; then + opensessions "$SELECTED_DIRS" + else + cd "$SELECTED_DIRS" || return + if [[ -n "$(git -C "$SELECTED_DIRS" status --porcelain 2>/dev/null)" ]]; then + git status --porcelain + fi fi else opensessions "$SELECTED_DIRS" |
