Skip to content

Commit

Permalink
fix: don't fail if apt package not available for linux dist
Browse files Browse the repository at this point in the history
  • Loading branch information
natelandau committed Jan 15, 2025
1 parent 63d7a57 commit 715d219
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ for package in "${packages[@]}"; do
info "Package ${package} is already installed"
continue
fi
sudo apt-get install -y --no-upgrade $package
if apt-cache search --names-only '^${package}$' | grep '${package}' &>/dev/null; then
sudo apt-get install -y --no-upgrade ${package}
else
warning "Package ${package} is not available in apt"
fi
done

success "Apt packages installed"
Expand Down
5 changes: 4 additions & 1 deletion dotfiles/dot_config/dotfile_source/third-party/fzf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ if [[ "$(command -v fzf)" ]] && [[ -n ${ZSH_NAME} ]]; then
eval "$(fzf --zsh)"
elif [ -f "/usr/share/doc/fzf/examples/key-bindings.zsh" ]; then
source /usr/share/doc/fzf/examples/key-bindings.zsh
source /usr/share/doc/fzf/examples/completion.zsh

if [ -f "/usr/share/doc/fzf/examples/completion.zsh" ]; then
source /usr/share/doc/fzf/examples/completion.zsh
fi
fi

elif [[ "$(command -v fzf)" ]] && [[ -n ${BASH} ]]; then
Expand Down
6 changes: 4 additions & 2 deletions dotfiles/dot_config/ghostty/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ bold-is-bright = true
cursor-style = block

# FONT SETTINGS
font-size = 16
font-size = 15
font-family = MesloLGMDZ Nerd Font Mono
font-thicken = true
font-feature = +liga
adjust-cell-width = -3%
adjust-cell-height = -5%

# WINDOW SETTINGS
window-height = 55
Expand All @@ -16,7 +18,7 @@ window-padding-x = 2
window-padding-y = 2
window-padding-balance = false
window-padding-color = background
adjust-cell-height = -5%

confirm-close-surface = false
link-url = true
macos-titlebar-style = tabs
Expand Down
1 change: 0 additions & 1 deletion dotfiles/dot_config/jdfile/config.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ match_case_list = [

[projects]
[projects.personal]
ignore_file_regex = '(\.(mov|MOV|ttf|TTF|sh|png|key|pub|jpg|jpeg|svg|heic|otf|thmx|zip|JPG|JPEG|HEIC|OTF)$|photo-\\d+)'
path = "~/personal-docs"
project_depth = 0
project_type = "jd"
Expand Down
44 changes: 22 additions & 22 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 715d219

Please sign in to comment.