dotconf/private_dot_bashrc.tmpl

58 lines
1.4 KiB
Cheetah
Raw Permalink Normal View History

#!/usr/bin/env bash
2026-03-23 13:46:49 -05:00
# vim: set ft=bash :
# don't put duplicate lines or those starting with spacein history
export HISTCONTROL=ignorespace:ignoredups
export HISTIGNORE='ls:cd:q'
shopt -s histappend
# prompt
blue="\[\e[38;5;50m\]"
reset="\[\e[00m\]"
cwd=$blue'\w'$reset
{{- if has "desktop" .class }}
user_host=$blue'\u@\h'$reset
history='\!'
export PS1="╭─($user_host)───[$history]───($cwd)\n╰╼ "
{{- else }}
export PS1="╭╢$cwd\n╰╼ "
{{- end }}
export PS2="╰┤ "
if [[ "$PATH" != *"$HOME/bin"* ]]; then
PATH=$PATH:"$HOME/bin"
fi
export EDITOR='/usr/bin/env nvim'
export VISUAL='/usr/bin/env nvim'
2026-03-21 23:34:28 -05:00
if command -v fzf >/dev/null; then
eval "$(fzf --bash)" >/dev/null
else
2026-03-23 13:46:49 -05:00
printf "\33[90mfzf not installed; shell integration not available.\33[0m\n"
2026-03-21 23:34:28 -05:00
fi
2026-03-23 13:46:49 -05:00
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
function conf() {
2026-03-23 13:46:49 -05:00
test -s "$1" && source "$1"
}
2026-03-23 13:46:49 -05:00
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 }}