Skip to content

Commit

Permalink
cd to $HOME when running open-wsl -l and no existing tmux process
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu committed Oct 24, 2016
1 parent 3aca430 commit 08316c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/etc/wsl-terminal.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ attach_tmux_locally=0
; If attach_tmux_locally=1, add these codes to .bashrc/.zshrc:
;[ -z "$TMUX" -a -n "$USE_TMUX" ] && {
; [ -n "$ATTACH_ONLY" ] && {
; cd
; tmux a 2>/dev/null || exec tmux
; tmux a 2>/dev/null || cd && exec tmux
; exit
; }
;
Expand Down
2 changes: 1 addition & 1 deletion src/open-wsl.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else
}
else
{
Run, %A_ScriptDir%\bin\mintty %icon_string% -t "%title%" -e /bin/wslbridge -t %shell% -c "tmux a 2>/dev/null || tmux"
Run, %A_ScriptDir%\bin\mintty %icon_string% -t "%title%" -e /bin/wslbridge -t %shell% -c "tmux a 2>/dev/null || cd && tmux"
}
}
else
Expand Down

0 comments on commit 08316c0

Please sign in to comment.