commit 07f87c77aeb74f31de45acc511f911125769f08d
parent 027258b36c8b09c64ce1a034790c5c0a635b1b45
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Mon, 26 Jun 2023 13:43:34 +0530
Add empty inupt handling for attach function
Simply hyper-red.vim for dark theme
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.config/sh/functions b/.config/sh/functions
@@ -5,6 +5,7 @@ md() {
attach() {
if there abduco && [ $# -eq 0 ]; then
sesh_name=$(abduco -l | tail -n +2 | cut -f3 | $FUZZER)
+ test -z "$sesh_name" && return
abduco -a $sesh_name || {
echo "Do you want to create session: $sesh_name? (press any key)";
read a && abduco -c $sesh_name mtm;
diff --git a/.local/share/vim/hyper-red.vim b/.local/share/vim/hyper-red.vim
@@ -7,9 +7,9 @@ if &background == "dark"
hi! LineNr guibg=NONE ctermbg=NONE guifg=DarkGray ctermfg=DarkGray
hi! CursorLineNr cterm=NONE gui=NONE guibg=NONE ctermbg=NONE guifg=White ctermfg=White
hi! StatusLineNC guibg=LightGray ctermbg=LightGray guifg=Black ctermfg=Black
- hi! Statement ctermfg=Red guifg=Red
- hi! Constant ctermfg=LightGreen guifg=LightGreen
- hi! String ctermfg=LightBlue guifg=LightBlue
+ hi! Statement ctermfg=NONE guifg=NONE
+ hi! Constant ctermfg=Red guifg=Red
+ hi! String ctermfg=DarkGray guifg=DarkGray
hi! Special cterm=bold ctermfg=LightMagenta guifg=LightMagenta
hi! Identifier ctermfg=White guifg=White
hi! IncSearch ctermbg=Black ctermfg=Yellow guibg=Black guifg=Yellow
@@ -18,7 +18,7 @@ if &background == "dark"
hi! Comment ctermfg=DarkGray guifg=DarkGray
hi! Visual ctermbg=White ctermfg=Black guibg=White guifg=Black
hi! Type ctermfg=LightGray guifg=LightGray
- hi! PreProc ctermfg=DarkGray guifg=DarkGray
+ hi! PreProc ctermfg=LightGray guifg=LightGray
hi! MatchParen ctermbg=NONE cterm=underline ctermfg=LightMagenta
else
hi! LineNr cterm=NONE gui=NONE guibg=NONE ctermbg=NONE guifg=DarkGray ctermfg=DarkGray