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 #43

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
20 changes: 18 additions & 2 deletions .chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,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 +74,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"