macbook manage zsh theme and remove clamav
This commit is contained in:
parent
206e62e698
commit
cd9a7e172e
5 changed files with 19 additions and 15 deletions
|
@ -1 +0,0 @@
|
||||||
DatabaseMirror database.clamav.net
|
|
|
@ -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
|
||||||
|
|
|
@ -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()]:
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
defaults = {
|
defaults = {
|
||||||
'brew': {
|
'brew': {},
|
||||||
'clamav',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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%} "
|
||||||
|
|
Loading…
Reference in a new issue