Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 1.49 KB

WSL-notes.rst

File metadata and controls

79 lines (53 loc) · 1.49 KB

WSL notes

Postgres notes

### WARNING: could not flush dirty data: Function not implemented

Link: microsoft/WSL#3863

In postgresql.conf:

` data_sync_retry = true `

### Postgres isn't started?

You have to do it manually

` sudo service postgresql start `

Battling terminal corruption

with WSL (bash.exe), vim, and tmux

Link: cmderdev/cmder#901 (comment)

` %windir%\system32\bash.exe ~ -c bash -cur_console:p `

In ConEmu, go into Startup -> Tasks and create a Bash::bash task

Task params: /icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"

Command (including starting at $HOME):

` %windir%\system32\bash.exe ~ -c bash -cur_console:p `

### tmux: use xterm as default terminal

Link: cmderdev/cmder#1178 (comment)

` set -g default-terminal "xterm" `

### tmux: More sorcery

Link: Maximus5/ConEmu#1786 (comment)

` set -ags terminal-overrides ",xterm-*:csr@" `

### vim:

Link: cmderdev/cmder#1719 (comment)

```viml if (&term == "pcterm" || &term == "win32")

set term=xterm t_Co=256 let &t_AB="e[48;5;%dm" let &t_AF="e[38;5;%dm" set termencoding=utf8 set nocompatible inoremap <Char-0x07F> <BS> nnoremap <Char-0x07F> <BS>

endif " set background=dark " colorscheme solarized ```