mirror of
https://github.com/zoriya/flake.git
synced 2026-06-05 11:39:51 +00:00
Unset cmd env before running it
This commit is contained in:
@@ -166,6 +166,11 @@ ZLE_RPROMPT_INDENT=0
|
||||
|
||||
# execute arbitrary commands on startup since `zsh -sc` is not a real option :c
|
||||
if [[ -n CMD ]]; then
|
||||
eval $CMD
|
||||
# unset the cmd before executing it (for long processes)
|
||||
cmd=$CMD
|
||||
unset CMD
|
||||
if [[ -n $TMUX ]]; then
|
||||
tmux set-environment -r CMD
|
||||
fi
|
||||
eval $cmd
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user