feat: set EDITOR=nvim before tmux starts inside podman

This commit is contained in:
yeti
2025-05-14 07:35:20 +01:00
parent 03fd0b6efa
commit 8aefadda19
3 changed files with 2 additions and 3 deletions

View File

@ -450,7 +450,6 @@ set -g status-right "#{E:@catppuccin_status_session}"
set -g set-clipboard on
set -g allow-passthrough on
setw -g mode-keys vi
# -- custom variables ----------------------------------------------------------

View File

@ -1,2 +1,2 @@
#!/bin/bash
tmux new-session -s "$1"
EDITOR=nvim tmux new-session -s "$1"

View File

@ -150,7 +150,7 @@ rw)
# Run tmux session inside the container
if ! podman exec -it --user "$DEV_USER" "$WORKSPACE" tmux has-session -t "$TMUX_SESSION" >/dev/null 2>&1; then
if ! podman exec -it --user "$DEV_USER" "$WORKSPACE" tmux new-session -d -s "$TMUX_SESSION" >/dev/null 2>&1; then
if ! podman exec -it -e EDITOR=nvim --user "$DEV_USER" "$WORKSPACE" tmux new-session -d -s "$TMUX_SESSION" >/dev/null 2>&1; then
log "❌ Could not create new tmux session. Please contact admin or try again later."
exit 1
fi