Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2021-06-02 16:07:14 +08:00
commit 4da081c761
3 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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 <leader>es :%s/\s\+$//g<CR>
" location jumping
nnoremap <leader>n :cnext<CR>
nnoremap <leader>p :cprev<CR>
@ -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

View File

@ -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
}
}