mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Strip useless .local from prompt
This commit is contained in:
parent
2bd6ca065a
commit
b1fe9096ec
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ prompt_build_simple() {
|
|||
__git_ps1_vars
|
||||
|
||||
if [[ -n $SSH_CLIENT ]]; then
|
||||
echo -n "${HOSTNAME%%.local} "
|
||||
echo -n "${HOSTNAME%.local} "
|
||||
fi
|
||||
|
||||
if [[ -n $STY ]]; then
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ set_prompt() {
|
|||
local buffer=""
|
||||
|
||||
if [[ -n $SSH_CLIENT ]]; then
|
||||
buffer="${buffer}${HOST} "
|
||||
buffer="${buffer}${HOST%.local} "
|
||||
fi
|
||||
|
||||
if [[ -n $STY ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue