From db197535f5e9ec9794967022db7a3088826adebf Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 4 Mar 2021 14:33:41 -0500 Subject: [PATCH] Small alias and vimrc tweak --- aliases | 12 ++++++++++-- vimrc | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/aliases b/aliases index 99873a0..1221624 100644 --- a/aliases +++ b/aliases @@ -116,8 +116,12 @@ remove_windows_file() { open_explorer_here() { local path_expanded=$(expand_path "$1") - local path=$(unix_to_windows_path "$path_expanded") - explorer.exe "$path" + if [[ -d $path_expanded ]]; then + local path=$(unix_to_windows_path "$path_expanded") + explorer.exe "$path" + else + echo "Folder no longer exists" + fi } make_vid_dir_and_cd_into() { @@ -660,9 +664,13 @@ alias tw-1080-shortname='dl_twitch_vid "1080" 1 0' alias tw-1080-shortname-compressed='dl_twitch_vid "1080" 1 $compression_quality' alias tw-1080p60='dl_twitch_vid "1080p60" 0 0' +alias tw-1080p50='dl_twitch_vid "1080p50" 0 0' alias tw-1080p60-compressed='dl_twitch_vid "1080p60" 0 $compression_quality' +alias tw-1080p50-compressed='dl_twitch_vid "1080p50" 0 $compression_quality' alias tw-1080p60-shortname='dl_twitch_vid "1080p60" 1 0' +alias tw-1080p50-shortname='dl_twitch_vid "1080p50" 1 0' alias tw-1080p60-shortname-compressed='dl_twitch_vid "1080p60" 1 $compression_quality' +alias tw-1080p50-shortname-compressed='dl_twitch_vid "1080p50" 1 $compression_quality' alias tw-720='dl_twitch_vid "720p" 0 0' alias tw-720-compressed='dl_twitch_vid "720p-1" 0 $compression_quality' diff --git a/vimrc b/vimrc index 40ffe30..1651b4b 100644 --- a/vimrc +++ b/vimrc @@ -366,7 +366,7 @@ augroup campoCmds " @improve: don't run a bunch of ctags for the same project when mass " saving files. They all try to write and move newtags which tends to " lock up vim and/or spew errors. - let l:ctags_cmd = "!(ctags --c-types=+l --c++-types=+l --exclude=*.md --exclude=*.txt --exclude=*.config --exclude=*.css --exclude=*.html --exclude=*.htm --exclude=*.json --exclude=node_modules --exclude=.git --exclude=.cache " . g:campo_custom_ctags_args . " --recurse=yes -o newtags; mv newtags tags) &" + let l:ctags_cmd = "!(ctags --c-types=+l --c++-types=+l --exclude=*.md --exclude=*.txt --exclude=*.config --exclude=*.css --exclude=*.js --exclude=*.html --exclude=*.htm --exclude=*.json --exclude=node_modules --exclude=.git --exclude=.cache " . g:campo_custom_ctags_args . " --recurse=yes -o newtags; mv newtags tags) &" exec l:ctags_cmd | redraw! endfun