dot

packages and services management
Log | Files | Refs | README

commit 256d7ecda33a7834e1a95f05cb1778c0ae3a0934
parent 152937043c0fe2105a431ec7ee758badb1a90d42
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue,  6 Mar 2018 15:46:52 +0100

leaner prompt

Diffstat:
M.bashrc | 8++++----
M.profile | 6++----
Tpack/entr/build | 0
3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -1,6 +1,6 @@ -[ "$EMAIL" = 'mail@josuah.net' ] || . ./.profile +. ./.profile export TERM=screen -export PS1='$([ "$?" -gt 0 ] && printf "\033[31;1mx\033[m\n\r")' -export PS1="$PS1$(printf '\033]0;%s\a' '$PWD') -$(uname -n)$([ "$(whoami)" = "root" ] && printf '#' || printf '$') " +PS1='$([ $? -gt 0 ] && printf "\\033[31;1mx\\033[m\\n\\r")'"$( + [ "$(whoami)" = "root" ] && s='#' || s='$' + printf '\033]0;$PWD\a\n%s%s ' "$(uname -n)" "$s")" diff --git a/.profile b/.profile @@ -30,11 +30,9 @@ export PACKROOT="$HOME/.local" export PACK="$HOME/etc/pack" export PLAN9="$PACKROOT/src/plan9" +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin" export PATH="$HOME/etc/bin:$PACKROOT/bin:$PATH:$PLAN9/bin" +export MANPATH="/usr/share/man:/usr/local/share/man" export MANPATH="$HOME/etc/man:/usr/share/man:/usr/local/man" export MANPATH="$PACKROOT/share/man:$MANPATH:$PLAN9/man" -export C_INCLUDE_PATH="$PACKROOT/include" -export LIBRARY_PATH="$PACKROOT/lib:/usr/local/lib/inotify" export LD_LIBRARY_PATH="$PACKROOT/lib:/usr/local/lib/inotify" - -export PS1='\n\h\$ ' diff --git a/pack/entr/build b/pack/entr/build