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