From 7c1d2ea3615d7889d9ea0abdfa29f95222800bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 May 2019 13:08:50 +0200 Subject: shellrc: make prompt shorter --- shellrc/Makefile | 2 +- shellrc/files/profile.prompt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shellrc/Makefile b/shellrc/Makefile index d13cd06..1052e6d 100644 --- a/shellrc/Makefile +++ b/shellrc/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=shellrc -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=https://git.cynerd.cz/shellrc PKG_MAINTAINER:=Karel Kočí diff --git a/shellrc/files/profile.prompt.sh b/shellrc/files/profile.prompt.sh index 122a35b..7a857da 100644 --- a/shellrc/files/profile.prompt.sh +++ b/shellrc/files/profile.prompt.sh @@ -2,7 +2,7 @@ case "$TERM" in xterm*|rxvt*) export PS1='$(EC=$? -[ $EC = 0 ] || echo -n "\e[1;33m($EC) " +[ $EC = 0 ] || echo -n "\e[1;33m$EC:" if [ `id -u` -eq "0" ]; then echo -n "\[\e[1;31m\]\u@\h:\[\e[1;34m\]\W\[\e[1;31m\]\$\[\e[0m\] " else -- cgit v1.2.3