# Replace the process to tmux
if [ -z "$TMUX" -a x"$TERM" != x"screen" ]
    switch "$WSLENV"
        case 'VSCODE*'
            /bin/true # do nothing
        case '*'
            which tmux && exec tmux -u
    end
end

# Create temporary files if running on WSL
if [ -n "$WSLENV" ]
    sudo systemd-tmpfiles --create
end

# Replace the process to tmux
if [ -z "$TMUX" -a x"$TERM" != x"screen" ]
    switch "$WSLENV"
        case 'VSCODE*'
            /bin/true # do nothing
        case '*'
            which tmux && exec tmux -u
    end
end

Create temporary files if running on WSL
Create temporary files if running on WSL

yusuke-arai/dotfiles