feat: set EDITOR=nvim before tmux starts inside podman
This commit is contained in:
@ -450,7 +450,6 @@ set -g status-right "#{E:@catppuccin_status_session}"
|
|||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
|
|
||||||
setw -g mode-keys vi
|
|
||||||
|
|
||||||
# -- custom variables ----------------------------------------------------------
|
# -- custom variables ----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
tmux new-session -s "$1"
|
EDITOR=nvim tmux new-session -s "$1"
|
||||||
|
@ -150,7 +150,7 @@ rw)
|
|||||||
|
|
||||||
# Run tmux session inside the container
|
# 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 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."
|
log "❌ Could not create new tmux session. Please contact admin or try again later."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user