Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmercer committed Oct 21, 2023
1 parent a872001 commit 45d3042
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ packages=(
"jq"
"less"
"nmap"
"seclists"
"shellcheck"
"tig"
"tldr"
Expand Down Expand Up @@ -56,9 +57,13 @@ source "$HOME/.cargo/env"
# install delta
cargo install git-delta

# # install lazygit
# install lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
if [[ $(arch) == "x86_64" ]]; then
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
else
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_arm64.tar.gz"
fi
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
rm -rf "$HOME"/lazygit*
Expand All @@ -70,4 +75,16 @@ sudo apt -y install expect

{{ end }}

# Remove packages
packages=("nano")

for pkg in "${packages[@]}"; do
# Check if package is installed
if command -v "$pkg" >/dev/null 2>&1; then
echo "$pkg is installed. Removing it now."
sudo apt remove -y "$pkg"
fi
done


{{- end -}}
3 changes: 2 additions & 1 deletion zsh/exports.zsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export EDITOR="vim"
export VISUAL="vim"
export EDITOR="$VISUAL"
export SHELL=$(which zsh)
export ANSIBLE_NOCOWS=1
export TERM="xterm-256color"

0 comments on commit 45d3042

Please sign in to comment.