Skip to content

Instantly share code, notes, and snippets.

@c0desurfer
Last active March 9, 2018 12:47
Show Gist options
  • Save c0desurfer/2aa92526816cd4a131da682bbde0501e to your computer and use it in GitHub Desktop.
Save c0desurfer/2aa92526816cd4a131da682bbde0501e to your computer and use it in GitHub Desktop.
WSL Terminal
[config]
title=" "
;shell=/bin/bash
;shell=/bin/bash --login
shell=/bin/zsh
use_tmux=1
; 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=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment