1
0
Fork 0

zsh: compatibility improvements; vimplugrc: proper font spec

This commit is contained in:
Von Random 2022-07-29 19:02:33 +03:00
parent e517d9329d
commit cc276c7b19
2 changed files with 7 additions and 6 deletions

View file

@ -80,7 +80,7 @@ let g:lightline['colorscheme'] = printf(lightline_theme)
if $TERM !~ '^linux' if $TERM !~ '^linux'
if has('gui_running') if has('gui_running')
set guifont=Cascadia\ Mono\ PL\ 13 set guifont=Cascadia\ Mono\ PL:h16
set guicursor=a:blinkon0,a:block,i:ver1-Cursor/lCursor,r:hor1-Cursor/lCursor set guicursor=a:blinkon0,a:block,i:ver1-Cursor/lCursor,r:hor1-Cursor/lCursor
set guiheadroom=0 guioptions=aei mouse=a set guiheadroom=0 guioptions=aei mouse=a

11
zshrc
View file

@ -76,7 +76,7 @@ prompt_user='%F{%(!.red.blue)}%n%f'
prompt_host='%m' prompt_host='%m'
prompt_cwd='%F{green}%d%f' prompt_cwd='%F{green}%d%f'
prompt_git_fmt='\ue0a0 %s %s%%f ' prompt_git_fmt='\ue0a0 %s %s%%f '
prompt_state_file=${RUN_DIR:-/run/user/$UID}/zsh_gitstatus_$$.tmp prompt_state_file=/tmp/zsh_gitstatus_$$.tmp
printf -v PROMPT $prompt_fmt $prompt_user $prompt_host $prompt_cwd '' printf -v PROMPT $prompt_fmt $prompt_user $prompt_host $prompt_cwd ''
printf -v PROMPT2 $prompt_fmtn '%_' printf -v PROMPT2 $prompt_fmtn '%_'
@ -98,7 +98,7 @@ precmd.is_git_repo() {
} }
precmd.git() { precmd.git() {
typeset raw_status typeset raw_status
raw_status=$(flock -w 0 $prompt_state_file git --no-optional-locks status --porcelain -bu 2>/dev/null) raw_status=$(flock -n $prompt_state_file git --no-optional-locks status --porcelain -bu 2>/dev/null)
(($?)) && return 0 (($?)) && return 0
typeset branch_status git_status IFS= typeset branch_status git_status IFS=
@ -157,11 +157,12 @@ tailf() { command less +F $@ }
rgrep() { command grep --exclude-dir=\.git -R $@ } rgrep() { command grep --exclude-dir=\.git -R $@ }
# ls # ls
ls() { command ls --color=auto --group-directories-first $@ }
if [[ -x $(whence -p exa) ]]; then if [[ -x $(whence -p exa) ]]; then
ll() { command exa -lag --group-directories-first $@ } ls() { command exa --group-directories-first $@ }
ll() { ls -lag $@ }
else else
ll() { command ls -lha --color=auto --group-directories-first $@ } ls() { command ls --color=auto $@ }
ll() { ls -lha $@ }
fi fi
# git # git