summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-05-02 13:08:50 +0200
committerKarel Kočí <karel.koci@nic.cz>2019-05-02 13:08:50 +0200
commit7c1d2ea3615d7889d9ea0abdfa29f95222800bc2 (patch)
tree55a3ca50c3e2c5c6335ac5a86f6ac616c872d2d0
parentc4fb936ad961cfff7226f3fc5b844938927bfc55 (diff)
downloadopenwrt-personal-pkgs-7c1d2ea3615d7889d9ea0abdfa29f95222800bc2.tar.gz
openwrt-personal-pkgs-7c1d2ea3615d7889d9ea0abdfa29f95222800bc2.tar.bz2
openwrt-personal-pkgs-7c1d2ea3615d7889d9ea0abdfa29f95222800bc2.zip
shellrc: make prompt shorter
-rw-r--r--shellrc/Makefile2
-rw-r--r--shellrc/files/profile.prompt.sh2
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čí <cynerd@email.cz>
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