add indeed-specific bashrc

This commit is contained in:
Robert Perce 2026-03-23 13:46:49 -05:00
parent ed5a753b19
commit 44727ebf9a

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# vim: set ft=bash :
# don't put duplicate lines or those starting with spacein history
export HISTCONTROL=ignorespace:ignoredups
@ -23,18 +24,36 @@ if [[ "$PATH" != *"$HOME/bin"* ]]; then
fi
bind 'set mark-symlinked-directories on'
export EDITOR='/usr/bin/env nvim'
export VISUAL='/usr/bin/env nvim'
if command -v fzf >/dev/null; then
eval "$(fzf --bash)" >/dev/null
else
printf "%sfzf not installed; shell integration not available.%s\n" "\[\e[90m\]" "$reset"
printf "\33[90mfzf not installed; shell integration not available.\33[0m\n"
fi
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
function conf() {
fname="${XDG_CONFIG_HOME:-$HOME/.config}/$1"
test -f "$fname" && source "$fname"
test -s "$1" && source "$1"
}
conf bash/cmds.bash
conf "$XDG_CONFIG_HOME/bash/cmds.bash"
{{- if has "indeed" .class }}
# Setup INDEED_ENV_DIR earlier.
if [ -z "${INDEED_ENV_DIR}" ]; then
export INDEED_ENV_DIR="/home/rperce/env"
fi
# Single-brace syntax because this is required in bash and sh alike
if [ -e "${INDEED_ENV_DIR}/etc/indeedrc" ]; then
. "${INDEED_ENV_DIR}/etc/indeedrc"
fi
# END env Setup -- Managed by Ansible DO NOT EDIT.
conf "$HOME/.indeed-kube-profile"
conf "$HOME/.cargo/env"
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
{{- end }}