rc: Forward $TMPDIR to iterm
subprocesses
This commit is contained in:
parent
79faae8546
commit
a244c10167
|
@ -20,14 +20,14 @@ def -hidden -params 1.. iterm-new-split-impl %{
|
||||||
shift
|
shift
|
||||||
if [ $# -gt 0 ]; then kakoune_params="-e '$@'"; fi
|
if [ $# -gt 0 ]; then kakoune_params="-e '$@'"; fi
|
||||||
sh_cmd="kak -c ${kak_session} ${kakoune_params}"
|
sh_cmd="kak -c ${kak_session} ${kakoune_params}"
|
||||||
osascript \
|
osascript \
|
||||||
-e "tell application \"iTerm\"" \
|
-e "tell application \"iTerm\"" \
|
||||||
-e " tell current session of current window" \
|
-e " tell current session of current window" \
|
||||||
-e " tell (split ${direction} with same profile)" \
|
-e " tell (split ${direction} with same profile)" \
|
||||||
-e " select" \
|
-e " select" \
|
||||||
-e " write text \"${sh_cmd}\"" \
|
-e " write text \"TMPDIR='${TMPDIR}' ${sh_cmd}\"" \
|
||||||
-e " end tell" \
|
-e " end tell" \
|
||||||
-e " end tell" \
|
-e " end tell" \
|
||||||
-e "end tell"
|
-e "end tell"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ All optional arguments are forwarded to the new kak client} \
|
||||||
-e "tell application \"iTerm\"" \
|
-e "tell application \"iTerm\"" \
|
||||||
-e " tell current window" \
|
-e " tell current window" \
|
||||||
-e " tell current session of (create tab with default profile)" \
|
-e " tell current session of (create tab with default profile)" \
|
||||||
-e " write text \"${sh_cmd}\"" \
|
-e " write text \"TMPDIR='${TMPDIR}' ${sh_cmd}\"" \
|
||||||
-e " end tell" \
|
-e " end tell" \
|
||||||
-e " end tell" \
|
-e " end tell" \
|
||||||
-e "end tell"
|
-e "end tell"
|
||||||
|
@ -65,12 +65,12 @@ All optional arguments are forwarded to the new kak client} \
|
||||||
%sh{
|
%sh{
|
||||||
if [ $# -gt 0 ]; then kakoune_params="-e '$@'"; fi
|
if [ $# -gt 0 ]; then kakoune_params="-e '$@'"; fi
|
||||||
sh_cmd="kak -c ${kak_session} ${kakoune_params}"
|
sh_cmd="kak -c ${kak_session} ${kakoune_params}"
|
||||||
osascript \
|
osascript \
|
||||||
-e "tell application \"iTerm\"" \
|
-e "tell application \"iTerm\"" \
|
||||||
-e " set w to (create window with default profile)" \
|
-e " set w to (create window with default profile)" \
|
||||||
-e " tell current session of w" \
|
-e " tell current session of w" \
|
||||||
-e " write text \"${sh_cmd}\"" \
|
-e " write text \"TMPDIR='${TMPDIR}' ${sh_cmd}\"" \
|
||||||
-e " end tell" \
|
-e " end tell" \
|
||||||
-e "end tell"
|
-e "end tell"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user