macbook manage zsh theme and remove clamav

This commit is contained in:
cronekorkn 2024-01-08 12:25:44 +01:00
parent 206e62e698
commit cd9a7e172e
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
5 changed files with 19 additions and 15 deletions

View file

@ -1 +0,0 @@
DatabaseMirror database.clamav.net

View file

@ -2,7 +2,8 @@ export PATH=~/.bin:$PATH
export PATH=~/.cargo/bin:$PATH export PATH=~/.cargo/bin:$PATH
export ZSH=~/.zsh/oh-my-zsh export ZSH=~/.zsh/oh-my-zsh
ZSH_THEME="ckn" export ZSH_HOSTNAME='sm'
ZSH_THEME="bw"
HIST_STAMPS="yyyy/mm/dd" HIST_STAMPS="yyyy/mm/dd"
plugins=( plugins=(
zsh-autosuggestions zsh-autosuggestions

View file

@ -22,6 +22,12 @@ files['/Users/mwiegand/.bin/macbook-update'] = {
'mode': '755', 'mode': '755',
} }
with open(f'{repo.path}/bundles/zsh/files/bw.zsh-theme') as f:
files['/Users/mwiegand/.zsh/oh-my-zsh/themes/bw.zsh-theme'] = {
'content': f.read(),
'mode': '0644',
}
# direnv # direnv
directories['/Users/mwiegand/.local/share/direnv'] = {} directories['/Users/mwiegand/.local/share/direnv'] = {}
@ -31,15 +37,6 @@ files['/Users/mwiegand/.local/share/direnv/venv'] = {}
files['/Users/mwiegand/.local/share/direnv/bundlewrap'] = {} files['/Users/mwiegand/.local/share/direnv/bundlewrap'] = {}
# clamav
files['/opt/homebrew/etc/clamav/freshclam.conf'] = {
'group': 'admin',
}
# run me baby one more time:
# freshclam && clamscan --infected --recursive --exclude-dir ~/Library/Mail ~
################## ##################
for element in [*files.values(), *directories.values()]: for element in [*files.values(), *directories.values()]:

View file

@ -1,5 +1,3 @@
defaults = { defaults = {
'brew': { 'brew': {},
'clamav',
},
} }

View file

@ -34,7 +34,16 @@ function zsh_exitcode_color {
echo "%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})" echo "%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})"
} }
PROMPT='$(zsh_root_color)$(whoami)%{$reset_color%}@$(zsh_exitcode_color)$(hostname -s) %{$fg[cyan]%}$(zsh_spwd)%{$reset_color%} $(git_prompt_info)' function zsh_hostname {
if [ -z "$ZSH_HOSTNAME" ]
then
hostname -s
else
echo "$ZSH_HOSTNAME"
fi
}
PROMPT='$(zsh_root_color)$(whoami)%{$reset_color%}@$(zsh_exitcode_color)$(zsh_hostname) %{$fg[cyan]%}$(zsh_spwd)%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "