Fix ZSH prompt
This commit is contained in:
parent
a67d428415
commit
b0671d39e7
2 changed files with 10 additions and 7 deletions
|
@ -91,6 +91,11 @@ then
|
|||
fi
|
||||
unset _flatpak_xdg_path
|
||||
|
||||
# Basic exports.
|
||||
export HISTFILE=""
|
||||
export PS1='\u@\h\$ '
|
||||
export TIME_STYLE=long-iso # Used by GNU 'ls'.
|
||||
|
||||
# Bash-specific settings that will not work in other Bourne-compatible shells.
|
||||
if [ -n "$BASH_VERSION" ]
|
||||
then
|
||||
|
@ -123,7 +128,7 @@ then
|
|||
bindkey "^[OA" history-beginning-search-backward-end
|
||||
bindkey "^[OB" history-beginning-search-forward-end
|
||||
|
||||
PS1="%B%n@%m%#%b "
|
||||
PS1="%n@%m%# "
|
||||
|
||||
else
|
||||
# POSIX-compatible prompt.
|
||||
|
@ -184,11 +189,6 @@ do
|
|||
_acp_add_path "$dir"
|
||||
done
|
||||
|
||||
# Other exports.
|
||||
export HISTFILE=""
|
||||
export PS1='\u@\h\$ '
|
||||
export TIME_STYLE=long-iso # Used by GNU 'ls'.
|
||||
|
||||
if [ "$XDG_SESSION_TYPE" = "wayland" ]
|
||||
then
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
|
|
|
@ -11,7 +11,10 @@ case "$-" in
|
|||
then
|
||||
. /etc/profile.d/bash_completion.sh
|
||||
fi
|
||||
set -o emacs
|
||||
if [ -z "$ZSH_VERSION" ]
|
||||
then
|
||||
set -o emacs
|
||||
fi
|
||||
usermotd
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue