Skip to content

Commit 4e63a79

Browse files
committed
wsl: Last working wsl config
1 parent 9ed9e75 commit 4e63a79

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

.bash/.bash_wsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# 8) Then just paste the shortcut there so it gets started automatically.
1515
#
1616
# More Info: https://medium.com/javarevisited/using-wsl-2-with-x-server-linux-on-windows-a372263533c3
17-
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
18-
export LIBGL_ALWAYS_INDIRECT=0
17+
# export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
18+
# export LIBGL_ALWAYS_INDIRECT=0
1919

2020
########################################################################################## VARIABLES
2121

.vim/auto-commands.vim

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,15 @@ autocmd FileChangedShellPost *
8585
" Automatically update the working directory to the current file's path.
8686
" autocmd BufEnter * silent! lcd %:p:h
8787

88-
"" WSL yank support
89-
"let s:clip = '/mnt/c/Windows/System32/clip.exe' " change this path according to your mount point
90-
"if executable(s:clip)
91-
" augroup WSLYank
92-
" autocmd!
93-
" autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
94-
" augroup END
95-
" endif"
88+
" WSL yank support
89+
let s:clip = '/mnt/c/Windows/System32/clip.exe' " change this path according to your mount point
90+
if executable(s:clip)
91+
augroup WSLYank
92+
autocmd!
93+
autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
94+
augroup END
95+
endif
96+
9697

9798
" autocmd BufWinEnter,BufRead,BufNewFile prettierrc set filetype=yaml
9899

.vim/neovim.vim

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,19 @@ if has('nvim') " =======[ Configurations that are only applied when using neovim
4848
4949
endif
5050

51-
let g:clipboard = {
52-
\ 'name': 'xclip',
53-
\ 'copy': {
54-
\ '+': 'xclip -selection clipboard',
55-
\ '*': 'xclip -selection clipboard',
56-
\ },
57-
\ 'paste': {
58-
\ '+': 'xclip -selection clipboard -o',
59-
\ '*': 'xclip -selection clipboard -o',
60-
\ },
61-
\ 'cache_enabled': 1,
62-
\ }
51+
" Hopefully Don't need this clipboard stuff for WSL2 anymore remove once confirmed.
52+
" let g:clipboard = {
53+
" \ 'name': 'xclip',
54+
" \ 'copy': {
55+
" \ '+': 'xclip -selection clipboard',
56+
" \ '*': 'xclip -selection clipboard',
57+
" \ },
58+
" \ 'paste': {
59+
" \ '+': 'xclip -selection clipboard -o',
60+
" \ '*': 'xclip -selection clipboard -o',
61+
" \ },
62+
" \ 'cache_enabled': 1,
63+
" \ }
6364

6465
set guifont=FiraCode\ NF:h16
6566

.vim/options.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ set showmode
168168
" ----------------------------------------------------------------------------------------
169169

170170
" Use the "+ register for clipboard.
171-
"set clipboard=unnamedplus
171+
" set clipboard+=unnamedplus
172172

173173
" Set an other column on the left for signs (or other information).
174174
" set signcolumn=yes

0 commit comments

Comments
 (0)