Improving the prompt choice layout.
This commit is contained in:
parent
3781c6ffc7
commit
6b99ba306b
2 changed files with 11 additions and 15 deletions
8
.bashrc
8
.bashrc
|
@ -23,19 +23,17 @@ export DEBFULLNAME="$USER_NICKNAME"
|
||||||
[ -f /etc/bash_completion ] && . /etc/bash_completion
|
[ -f /etc/bash_completion ] && . /etc/bash_completion
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
if [ -f /usr/bin/liquidprompt ]; then
|
if [ -f "/usr/bin/liquidprompt" ]; then
|
||||||
unset PROMPT_COMMAND
|
unset PROMPT_COMMAND
|
||||||
. /usr/bin/liquidprompt
|
. "/usr/bin/liquidprompt"
|
||||||
elif [ -f "$HOME/liquidprompt/liquidprompt" ]; then
|
elif [ -f "$HOME/liquidprompt/liquidprompt" ]; then
|
||||||
unset PROMPT_COMMAND
|
unset PROMPT_COMMAND
|
||||||
. "$HOME/liquidprompt/liquidprompt"
|
. "$HOME/liquidprompt/liquidprompt"
|
||||||
else
|
elif [ "$CLICOLOR" -ne 0 ]; then
|
||||||
if [ "$CLICOLOR" -ne 0 ]; then
|
|
||||||
PS1="\[\033[01;31m\]\u\[\033[01;37m\]@\[\033[01;33m\]\h\[\033[01;31m\]->\[\033[00m\] "
|
PS1="\[\033[01;31m\]\u\[\033[01;37m\]@\[\033[01;33m\]\h\[\033[01;31m\]->\[\033[00m\] "
|
||||||
else
|
else
|
||||||
PS1='\u@\h-> '
|
PS1='\u@\h-> '
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# GPG Agent
|
# GPG Agent
|
||||||
if [ -f "${HOME}/.gpg-agent-info" ]; then
|
if [ -f "${HOME}/.gpg-agent-info" ]; then
|
||||||
|
|
8
.zshrc
8
.zshrc
|
@ -21,20 +21,18 @@ autoload -U compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
if [ -f /usr/bin/liquidprompt ]; then
|
if [ -f "/usr/bin/liquidprompt" ]; then
|
||||||
unset PROMPT_COMMAND
|
unset PROMPT_COMMAND
|
||||||
. /usr/bin/liquidprompt
|
. "/usr/bin/liquidprompt"
|
||||||
elif [ -f "$HOME/liquidprompt/liquidprompt" ]; then
|
elif [ -f "$HOME/liquidprompt/liquidprompt" ]; then
|
||||||
unset PROMPT_COMMAND
|
unset PROMPT_COMMAND
|
||||||
. "$HOME/liquidprompt/liquidprompt"
|
. "$HOME/liquidprompt/liquidprompt"
|
||||||
else
|
elif [ "$CLICOLOR" -ne 0 ]; then
|
||||||
if [ "$CLICOLOR" -ne 0 ]; then
|
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[yellow]%}%M%{$fg[red]%}->%{$reset_color%} "
|
PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[yellow]%}%M%{$fg[red]%}->%{$reset_color%} "
|
||||||
else
|
else
|
||||||
PS1='%n@%M-> '
|
PS1='%n@%M-> '
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Syntax-highlighting
|
# Syntax-highlighting
|
||||||
if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]; then
|
if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]; then
|
||||||
|
|
Loading…
Reference in a new issue