Skip to content

Commit

Permalink
Add new installs; isolate alias installs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmercer committed Nov 14, 2023
1 parent f247c0c commit d31fb9f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sudo apt update

packages=(
"bat"
"colordiff"
"expect" # needed to set shell on Parrot
"fzf"
"gh"
Expand All @@ -33,13 +34,16 @@ packages=(
"universal-ctags"
"vim"
"wget"
"xclip"
)

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

sec_packages=(
"burpsuite"
"gobuster"
"seclists"
)
packages+=("${sec_packages[@]}")
Expand Down Expand Up @@ -90,5 +94,4 @@ for pkg in "${rm_packages[@]}"; do
fi
done


{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ python3 -m pip install --no-input arsenal-cli
# Load default MATE terminal settings
dbus-launch dconf load /org/mate/terminal/ < $DOTFILES/terminal/MATE.terminal

# Linux specific aliases
cat <<EOF > $DOTFILES/system/linux.zsh
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
EOF

# Replace nvim with real vim
sudo update-alternatives --remove vim /usr/bin/nvim
sudo apt install -y vim
Expand Down
15 changes: 15 additions & 0 deletions .chezmoiscripts/linux/run_onchange_before_30_linux_aliases.sh.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if eq .chezmoi.os "linux" -}}
#!/usr/bin/env bash

set -eufo pipefail

DOTFILES="$HOME/.local/share/chezmoi"

# Append aliases to linux.zsh
cat <<EOF >> "$DOTFILES/system/linux.zsh"
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
alias bat='batcat'
EOF

{{- end -}}

0 comments on commit d31fb9f

Please sign in to comment.