dot

packages and services management
Log | Files | Refs | README

commit cd3b90ed6832253b9f6caca12e149b347c2e04f3
parent 3c35a8654147e32a3632c2c63c2d8cc01f08ea6d
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 13 Jan 2019 00:24:07 +0100

simpler prompt

Diffstat:
Mconf/etc | 5+++--
Mprofile/prompt.sh | 7+------
2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/conf/etc b/conf/etc @@ -2,8 +2,9 @@ cd "$(dirname "$0")/.." +[ -d /etc/pack ] || git clone git://git.josuah.net/packages /etc/pack +[ -d /etc/s6-mk ] || git clone git://git.josuah.net/s6-mk /etc/s6-mk + for path in etc/*; do ln -sf "${PWD}/${path}" /etc - [ -d /etc/pack ] || git clone git://git.josuah.net/packages /etc/pack - [ -d /etc/s6-mk ] || git clone git://git.josuah.net/s6-mk /etc/s6-mk done diff --git a/profile/prompt.sh b/profile/prompt.sh @@ -16,11 +16,6 @@ case "$0" in ;; esac -PS1= -PS1=$PS1$vt_bold$(uname -n) -PS1=$PS1$vt_norm'$PWD' -PS1=$PS1$vt_bold$(id -u | sed -r "s/^0$/#/; s/[^#]+/$/") -PS1=$PS1$vt_red'${?#0}' -PS1=$PS1$vt_norm' ' +PS1=$vt_bold$(uname -n)'$PWD'$(id -u | sed -r "s/^0$/#/; s/[^#]+/$/")$vt_red'${?#0}'$vt_norm' ' export PS1