Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sec installs list #44

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sudo apt update

packages=(
"bat"
"expect" # needed to set shell on Parrot
"fzf"
"gh"
"git"
Expand All @@ -34,6 +35,17 @@ packages=(
"wget"
)

# security only packages
# this separate list helps with Github CI to pass
{{ if or (eq .osid "linux-kali") (eq .osid "linux-parrot") }}

sec_packages=(
"seclists"
)
packages+=("${sec_packages[@]}")

{{ end }}

# Loop through the array and install each package
for package in "${packages[@]}"; do
echo "Installing $package..."
Expand Down Expand Up @@ -67,17 +79,10 @@ tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
rm -rf "$HOME"/lazygit*

# Parrot install list
{{ if eq .osid "linux-parrot" }}

sudo apt -y install expect

{{ end }}

# Remove packages
packages=("nano")
rm_packages=("nano")

for pkg in "${packages[@]}"; do
for pkg in "${rm_packages[@]}"; do
# Check if package is installed
if command -v "$pkg" >/dev/null 2>&1; then
echo "$pkg is installed. Removing it now."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ sudo update-alternatives --remove vim /usr/bin/nvim
sudo apt install -y vim

# Update specific packages
# sudo apt update
# sudo apt install -y codium
# apt is already updated in the previous install script
sudo apt install -y codium

# TODO: Adjust keyboard shortcuts with kinto
# https://github.com/rbreaves/kinto
Expand Down