summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-18 22:00:19 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-18 22:00:19 +0100
commitc70879b695aa4a95917a0974107e96ee0da79b27 (patch)
tree14ea60c3117a9615f821456d67cce85babbef946 /.bashrc
parentf68f2e4925fbb1562d78c60bf72c94a56da8c7bb (diff)
Ensure compatible bashrc that works with ansible roles
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index fb90e00..256175c 100644
--- a/.bashrc
+++ b/.bashrc
@@ -76,15 +76,18 @@ if [ -d "$HOME/.local/bin" ]; then
export PATH="$HOME/.local/bin:$PATH"
fi
-# ==== go config.
+# ==== BEGIN ANISBLE GO CONFIG
if command -v go 1>/dev/null 2>&1; then
+ export PATH="$PATH:/usr/local/go/bin"
export PATH="$HOME/go/bin:$PATH"
fi
+# ==== END ANSIBLE GO CONFIG
-# ==== rust config
-if command -v cargo 1>/dev/null 2>&1; then
+# ==== BEGIN ANSIBLE RUST CONFIG
+if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
+# ==== END ANSIBLE RUST CONFIG
# ==== rbenv config.
if command -v rbenv 1>/dev/null 2>&1; then