Make PS1 basic

This commit is contained in:
Anthony Rose 2023-08-31 23:00:52 +01:00
parent bb29e4717e
commit a67d428415

View file

@ -107,13 +107,6 @@ then
bind 'set enable-bracketed-paste off' bind 'set enable-bracketed-paste off'
export BASH_ENV="$HOME/.bashrc" export BASH_ENV="$HOME/.bashrc"
if [ -e /.flatpak-info ]
then
_acp_ps1_prefix="*"
fi
PS1="\[\033[01m\]${_acp_ps1_prefix}\u@\h\\$\[\033[00m\] "
unset _acp_ps1_prefix
elif [ -n "$ZSH_VERSION" ] elif [ -n "$ZSH_VERSION" ]
then then
autoload -Uz compinit && compinit autoload -Uz compinit && compinit
@ -140,7 +133,6 @@ else
bind "^[[1;5C" em-next-word bind "^[[1;5C" em-next-word
bind "^[[1;5D" ed-prev-word bind "^[[1;5D" ed-prev-word
fi fi
PS1="$(id -un)@$(uname -n | sed 's/\..*$//')$ "
fi fi
_acp_add_path () { _acp_add_path () {
@ -193,8 +185,8 @@ do
done done
# Other exports. # Other exports.
export PS1="${PS1:-\$ }" # Fallback prompt.
export HISTFILE="" export HISTFILE=""
export PS1='\u@\h\$ '
export TIME_STYLE=long-iso # Used by GNU 'ls'. export TIME_STYLE=long-iso # Used by GNU 'ls'.
if [ "$XDG_SESSION_TYPE" = "wayland" ] if [ "$XDG_SESSION_TYPE" = "wayland" ]