remove time from prompt

This commit is contained in:
Daniel McKnight 2024-10-10 20:56:10 -07:00
parent 69c97650f8
commit a0f14692d3

14
.bashrc
View file

@ -83,7 +83,7 @@ if [ "$color_prompt" = yes ]; then
prompt_symbol=💀 prompt_symbol=💀
fi fi
PROMPT_COMMAND='if [[ $? != 0 && $? != 130 ]];then echo "⚠️";fi' PROMPT_COMMAND='if [[ $? != 0 && $? != 130 ]];then echo "⚠️";fi'
PS1="$chrome_color┌──[${context_color}\A${chrome_color}]─"'${debian_chroot:+('${path_color}'$debian_chroot'${chrome_color}')─}${VIRTUAL_ENV:+('${path_color}'$(realpath $VIRTUAL_ENV --relative-to $PWD --relative-base /home)'${chrome_color}')─}'"[${context_color}\u${chrome_color}${prompt_symbol}${context_color}\h${chrome_color}]─(${path_color}\w${chrome_color})\n${chrome_color}${context_color}${prompt}${color_off} " PS1="$chrome_color┌──"'${debian_chroot:+('${path_color}'$debian_chroot'${chrome_color}')─}${VIRTUAL_ENV:+('${path_color}'$(realpath $VIRTUAL_ENV --relative-to $PWD --relative-base /home)'${chrome_color}')─}'"[${context_color}\u${chrome_color}${prompt_symbol}${context_color}\h${chrome_color}]─(${path_color}\w${chrome_color})\n${chrome_color}${context_color}${prompt}${color_off} "
PS2="$chrome_color└>$color_off " PS2="$chrome_color└>$color_off "
export VIRTUAL_ENV_DISABLE_PROMPT=1 export VIRTUAL_ENV_DISABLE_PROMPT=1
@ -150,6 +150,11 @@ fi
# Customizations # Customizations
# Use tmux for local shells
if [ -z "${SSH_CONNECTION}" ] && [ -z "${TERM_PROGRAM}" ]; then
tmux new -A -s local_tmux
fi
# Custom dircolors # Custom dircolors
[ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)" [ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)"
@ -167,3 +172,10 @@ alias sudosu="sudo bash --rcfile ~/.bashrc"
if [ -n "${SUDO_USER}" ]; then if [ -n "${SUDO_USER}" ]; then
alias nano="nano --rcfile \"/home/${SUDO_USER}/.nanorc\"" alias nano="nano --rcfile \"/home/${SUDO_USER}/.nanorc\""
fi fi
# History customization
shopt -s histverify
PROMPT_COMMAND="${PROMPT_COMMAND};history -a"
# Cargo binary path
[ -d "${HOME}/.cargo/bin" ] && export PATH="${PATH}:${HOME}/.cargo/bin"