nixos/dotfiles/bash_files/all_hosts/bashrc

26 lines
771 B
Bash
Raw Permalink Normal View History

2025-06-20 11:59:24 -07:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
2025-08-12 11:58:29 -07:00
# dont put duplicate lines or lines starting with space in the history
2025-06-20 11:59:24 -07:00
# See bash(1) for more options
HISTCONTROL=ignoreboth
HISTFILESIZE=-1
HISTSIZE=-1
export PROMPT_COMMAND='history -a'
if [ -f ~/.bash_local ]; then
. ~/.bash_local
fi
2025-08-12 11:58:29 -07:00
# show tldr on terminal start
# tldr --quiet $(tldr --quiet --list | shuf -n1)
2025-06-20 11:59:24 -07:00
PS1="\[\e[32m\][\[\e[m\]\[\e[32m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\]\[\e[32m\]]\[\e[m\]\[\e[34m\]\W\[\e[m\]\[\e[36m\]\\$\[\e[m\] "
if [ ! -z "$SSH_CLIENT" ]
then
PS1="\[\e[32m\][\[\e[m\]\[\e[31m\]\u\[\e[m\]\[\e[31m\]@\[\e[m\]\[\e[31m\]\h\[\e[m\]\[\e[32m\]]\[\e[m\]\[\e[34m\]\W\[\e[m\]\[\e[36m\]\\$\[\e[m\] "
fi
export PATH=$PATH:$HOME/bin