mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-04 06:40:29 +08:00
fix(riot): tmux use bash
This commit is contained in:
parent
12d77a1e01
commit
4c9cb23fb6
@ -132,10 +132,10 @@ eval_or_echo() {
|
|||||||
if [[ -z "$RIOT_TMUX_SESS" ]]; then
|
if [[ -z "$RIOT_TMUX_SESS" ]]; then
|
||||||
RIOT_TMUX_SESS=riot-$(date +%s)
|
RIOT_TMUX_SESS=riot-$(date +%s)
|
||||||
RIOT_TMUX_WIN=0
|
RIOT_TMUX_WIN=0
|
||||||
$DO tmux new-session -d -s $RIOT_TMUX_SESS
|
$DO tmux new-session -d -s $RIOT_TMUX_SESS bash -l
|
||||||
else
|
else
|
||||||
RIOT_TMUX_WIN=$((RIOT_TMUX_WIN+1))
|
RIOT_TMUX_WIN=$((RIOT_TMUX_WIN+1))
|
||||||
$DO tmux new-window -t $RIOT_TMUX_SESS:$RIOT_TMUX_WIN -d
|
$DO tmux new-window -t $RIOT_TMUX_SESS:$RIOT_TMUX_WIN -d bash -l
|
||||||
fi
|
fi
|
||||||
$DO tmux send-keys -t $RIOT_TMUX_SESS:$RIOT_TMUX_WIN "$cmd" Enter
|
$DO tmux send-keys -t $RIOT_TMUX_SESS:$RIOT_TMUX_WIN "$cmd" Enter
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user