From 59755b52ada6a8dee3d34c59460386d5a76c8225 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 13 May 2021 10:15:15 +0800 Subject: [PATCH 1/2] ... --- bin/download-yt-audio.sh | 3 ++- cli/vim/init.vim | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/download-yt-audio.sh b/bin/download-yt-audio.sh index 9258fb3..015f171 100755 --- a/bin/download-yt-audio.sh +++ b/bin/download-yt-audio.sh @@ -15,6 +15,7 @@ fi # https://github.com/TheFrenchGhosty # # + #--output "%(title)s - %(uploader)s - %(upload_date)s/%(title)s - %(uploader)s - %(upload_date)s [%(id)s].%(ext)s" \ yt-dlp \ --format "(bestaudio[acodec^=opus]/bestaudio)/best" \ @@ -34,6 +35,6 @@ yt-dlp \ --embed-thumbnail \ --extract-audio \ --match-filter "!is_live & !live" \ - --output "%(title)s - %(uploader)s - %(upload_date)s/%(title)s - %(uploader)s - %(upload_date)s [%(id)s].%(ext)s" \ + --output "%(uploader)s - %(title)s.%(ext)s" \ --merge-output-format "mkv" \ "$@" 2>/tmp/download-yt-audio-error.log diff --git a/cli/vim/init.vim b/cli/vim/init.vim index 1a6e12f..ad70186 100644 --- a/cli/vim/init.vim +++ b/cli/vim/init.vim @@ -23,6 +23,7 @@ set laststatus=2 set fillchars=vert:\ ,fold:- set clipboard=unnamedplus " system clipboard as default register. for vim to work need installing gvim package set mouse=a +set spell filetype plugin indent on syntax on au! BufWritePost $MYVIMRC source % @@ -83,6 +84,7 @@ au ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red au Syntax * match ExtraWhitespace /\s\+$/ nnoremap es :%s/\s\+$//g + " location jumping nnoremap n :cnext nnoremap p :cprev @@ -313,3 +315,8 @@ autocmd BufEnter,BufRead *.mom :set ft=mom " for yaml need cursorcolumn autocmd FileType yaml :set cursorcolumn + +" spell highlight +highlight clear SpellBad +highlight SpellBad cterm=underline +highlight SpellBad gui=undercurl From 2c7e2e06451084e7f49d5de95ddd7a5cd6ef0a63 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 13 May 2021 11:04:10 +0800 Subject: [PATCH 2/2] theme --- win/profile.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/profile.ps1 b/win/profile.ps1 index 6fd1433..5e8a953 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -23,9 +23,9 @@ Set-Alias -Name v nvim $isPs7 = $host.Version.Major -ge 7 if ( $isPs7 ) { if ((Get-Module oh-my-posh).Version.Major -eq 3) { - Set-PoshPrompt + Set-PoshPrompt -Theme fish } else { - Set-Prompt + Set-Prompt -Theme fish } }