remove time from prompt
This commit is contained in:
parent
69c97650f8
commit
a0f14692d3
1 changed files with 13 additions and 1 deletions
14
.bashrc
14
.bashrc
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue