tmux: ensure env vars are set in helpers
This commit is contained in:
parent
870ff77a1e
commit
558c7936b1
2 changed files with 22 additions and 2 deletions
|
@ -20,4 +20,24 @@ fre --store_name "edit-history" --add "$_file"
|
|||
|
||||
(tmux select-window -t helix &&
|
||||
tmux send-keys -t helix Escape &&
|
||||
tmux send-keys -t helix ":open ${_file}" Enter) || tmux new-window -t 42 -n helix helix "${_file}"
|
||||
tmux send-keys -t helix ":open ${_file}" Enter) || tmux new-window -t 42 -n helix \
|
||||
-e "AR=$AR" \
|
||||
-e "AS=$AS" \
|
||||
-e "BUILD_COMMAND=$BUILD_COMMAND" \
|
||||
-e "CC=$CC" \
|
||||
-e "CXX=$CXX" \
|
||||
-e "GOFLAGS=$GOFLAGS" \
|
||||
-e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \
|
||||
-e "LC_ALL=$LC_ALL" \
|
||||
-e "LD=$LD" \
|
||||
-e "NM=$NM" \
|
||||
-e "NM=$NM" \
|
||||
-e "OBJCOPY=$OBJCOPY" \
|
||||
-e "OBJDUMP=$OBJDUMP" \
|
||||
-e "PATH=$PATH" \
|
||||
-e "RANLIB=$RANLIB" \
|
||||
-e "READELF=$READELF" \
|
||||
-e "RUST_SRC_PATH=$RUST_SRC_PATH" \
|
||||
-e "SIZE=$SIZE" \
|
||||
-e "STRIP=$STRIP" \
|
||||
helix "${_file}"
|
||||
|
|
|
@ -23,7 +23,7 @@ _nvim_socket="$XDG_RUNTIME_DIR/nvim-persistent.sock"
|
|||
(tmux select-window -t nvim 2>/dev/null && tmux select-pane -t 0) && exec nvim --server "$_nvim_socket" --remote "$_file"
|
||||
|
||||
# nvim is not running/listening on remote socket, so start it.
|
||||
tmux new-window -S -t 1001-n nvim \
|
||||
tmux new-window -S -t 43 -n nvim \
|
||||
-e "AR=$AR" \
|
||||
-e "AS=$AS" \
|
||||
-e "BUILD_COMMAND=$BUILD_COMMAND" \
|
||||
|
|
Loading…
Reference in a new issue