# bash-specific setup; portable aliases live in ~/.shell_aliases PS1='\[\033]0;\u - \w\007\]\[\033[44;37m\]'$(printf '_%.0s' $(seq 1 $(tput cols)))'\[\033[1;0m\]\r\n\t \w :\n\$ ' [[ -f ~/.bash_prompt ]] && . ~/.bash_prompt alias '+'='pushd .' alias -- '-'='popd' command -v notify-send >/dev/null 2>&1 && alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' command -v pushover >/dev/null 2>&1 && alias pushalert='pushover --title "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' [[ -f ~/.shell_aliases ]] && . ~/.shell_aliases # directory jumper: zoxide where installed, z.sh as fallback (proxy env is installer-managed, see scripts/proxy/) if command -v zoxide >/dev/null 2>&1; then eval "$(zoxide init bash)" elif [[ -x ~/.cargo/bin/zoxide ]]; then eval "$(~/.cargo/bin/zoxide init bash)" elif [[ -f ~/.config/z.sh ]]; then . ~/.config/z.sh elif [[ -f ~/.oh-my-zsh/plugins/z/z.sh ]]; then export _Z_OWNER=$(whoami) . ~/.oh-my-zsh/plugins/z/z.sh fi [[ -f /usr/share/doc/fzf/examples/key-bindings.bash ]] && source /usr/share/doc/fzf/examples/key-bindings.bash [[ -f /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash HISTTIMEFORMAT="%F %T " shopt -s autocd 2>/dev/null || true # bash >= 4 only; macOS ships 3.2