mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

6-set-default-shell.bat Not working #93

Closed jrock2004 closed 6 years ago

jrock2004 commented 6 years ago

So I ran the command from outside wsl and it created a /etc/wsl-terminal.conf but when I open wsl-terminal its still opening bash. Thoughts?

[config]
title="        "

shell=/usr/bin/zsh
;shell=/bin/bash --login
;shell=/bin/zsh

use_tmux=0
; If use_tmux=1, add these codes to .bashrc/.zshrc:
;[[ -z "$TMUX" && -n "$USE_TMUX" ]] && {
;    [[ -n "$ATTACH_ONLY" ]] && {
;        tmux a 2>/dev/null || {
;            cd && exec tmux
;        }
;        exit
;    }
;
;    tmux new-window -c "$PWD" 2>/dev/null && exec tmux a
;    exec tmux
;}

; Set it to 1 if you want to keep tmux server or other processes running in background.
keep_wsl_running=0

;mintty_options=-p center

;icon=C:\Users\username\AppData\Local\lxss\bash.ico
; To use Ubuntu icon, uncomment the above line, and replace username with yours.
; To use mintty default icon, set icon=C:\path\to\wsl-terminal\bin\mintty.exe

; Run tools/3-write-distro-guids-to-config-file.js to generate the distro_guid config.
;distro_guid=
yogeshkotadiya commented 6 years ago

If you want ZSH as your default shell

;shell=/usr/bin/zsh
;shell=/bin/bash --login
shell=/bin/zsh
goreliu commented 6 years ago

You should run open-wsl.exe to update the wsl-terminal.lnk.