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

Minor tweaks #45

Merged
merged 1 commit into from
Nov 14, 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
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 -}}