From a0f14692d39790f1698db08f144cc75e6531ffbc Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 10 Oct 2024 20:56:10 -0700 Subject: [PATCH] remove time from prompt --- .bashrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8a54b69..d078e85 100644 --- a/.bashrc +++ b/.bashrc @@ -83,7 +83,7 @@ if [ "$color_prompt" = yes ]; then prompt_symbol=πŸ’€ 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 " export VIRTUAL_ENV_DISABLE_PROMPT=1 @@ -150,6 +150,11 @@ fi # Customizations +# Use tmux for local shells +if [ -z "${SSH_CONNECTION}" ] && [ -z "${TERM_PROGRAM}" ]; then + tmux new -A -s local_tmux +fi + # Custom dircolors [ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)" @@ -167,3 +172,10 @@ alias sudosu="sudo bash --rcfile ~/.bashrc" if [ -n "${SUDO_USER}" ]; then alias nano="nano --rcfile \"/home/${SUDO_USER}/.nanorc\"" 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"