From 9d459756df0c567a087a9a44e9f9491b2426e47e Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Fri, 24 May 2024 08:20:04 -0400 Subject: [PATCH] Use als if instealled, but don't install it --- home/.chezmoiscripts/run_once_before_02_install_alias-rs.sh | 5 ----- home/dot_bashrc.tmpl | 2 +- home/dot_config/zsh/dot_zshrc.tmpl | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 home/.chezmoiscripts/run_once_before_02_install_alias-rs.sh diff --git a/home/.chezmoiscripts/run_once_before_02_install_alias-rs.sh b/home/.chezmoiscripts/run_once_before_02_install_alias-rs.sh deleted file mode 100644 index a8c0b126..00000000 --- a/home/.chezmoiscripts/run_once_before_02_install_alias-rs.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -e - -pkgx cargo install --git https://github.com/nomyfan/alias-rs - diff --git a/home/dot_bashrc.tmpl b/home/dot_bashrc.tmpl index 6766c1b0..77f1924a 100644 --- a/home/dot_bashrc.tmpl +++ b/home/dot_bashrc.tmpl @@ -4,4 +4,4 @@ {{ output "pkgx" "starship" "init" "bash" }} -eval "$(als init bash)" +{{ output "sh" "-c" "als init bash || true" }} diff --git a/home/dot_config/zsh/dot_zshrc.tmpl b/home/dot_config/zsh/dot_zshrc.tmpl index 3bbfe59b..54876724 100644 --- a/home/dot_config/zsh/dot_zshrc.tmpl +++ b/home/dot_config/zsh/dot_zshrc.tmpl @@ -2,4 +2,4 @@ {{ output "pkgx" "starship" "init" "zsh" }} -eval "$(als init zsh)" +{{ output "sh" "-c" "als init zsh|| true" }}