Skip to content

Commit

Permalink
added some install changes and cleaned up the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkaufman committed Jan 15, 2025
1 parent 1ec984b commit 4a07952
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ The current list of programs that need installing and are used are as follows:
| `syncthing` | PPA | Program for syncing local files across devices more easily than would otherwise be possible |
| `tmux` | apt | Program for easier session management in the cli |
| `tpm` | script | Plugin manager for tmux |
| `wkhtmltopdf` | script | Program for converting html files to a pdf with an autogenerated table of contents |
| `weasyprint` | apt | Convert html to pdf |
| `pandoc` | apt | Document converter |

Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ install_script_section_text=(
"setup i3"
"setup vscode"
"setup neovim"
"setup wkhtmltopdf"
"setup doc converts"
)

declare -A install_script_sections_files=(
Expand All @@ -68,7 +68,7 @@ declare -A install_script_sections_files=(
["setup i3"]="install/setup_i3"
["setup neovim"]="install/setup_neovim"
["setup vscode"]="install/setup_vscode"
["setup wkhtmltopdf"]="install/setup_wkhtmltopdf"
["setup doc converts"]="install/setup_doc_converters"
)

for i in "${!install_script_section_text[@]}"; do
Expand Down
3 changes: 2 additions & 1 deletion install/setup_bash_and_general_apt_packages
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ declare -A apt_packages_to_install=(
)

# alias batcat to bat for easier use
[ -f /usr/bin/batcat ] && mkdir -p "$HOME/.local/bin" && ln -s /usr/bin/batcat "$HOME/.local/bin/bat"
batAliasPath="/usr/bin/batcat"
[ -f /usr/bin/batcat ] && [ ! -f "$batAliasPath" ] && mkdir -p "$HOME/.local/bin" && ln -s "$batAliasPath" "$HOME/.local/bin/bat"

for pkg in "${!apt_packages_to_install[@]}"; do install_apt_package "$pkg" "${apt_packages_to_install[$pkg]}"; done

Expand Down
2 changes: 1 addition & 1 deletion install/setup_wkhtmltopdf → install/setup_doc_converters
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if is_work_computer; then
echo "skipping wkhtmltopdf install"
echo "skipping doc converters install"
return
fi

Expand Down

0 comments on commit 4a07952

Please sign in to comment.