dot

packages and services management
Log | Files | Refs | README

commit 1ffb899258da7a94cafdae9b88eb3d9f7d6a8f8e
parent 94049ae934a8ce2b64f5b7d2d7ab91ce23a51f71
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Wed,  5 Apr 2017 16:13:52 +0200

simplified prompt code

Diffstat:
M.emacs.d/init.el | 2+-
M.profile | 12+++++-------
2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/.emacs.d/init.el b/.emacs.d/init.el @@ -12,7 +12,7 @@ (when (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (when (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) -(load-theme 'wheatgrass t) +;(load-theme 'wheatgrass t) (set-frame-font "mono:antialias=false:size=15") (add-to-list 'default-frame-alist diff --git a/.profile b/.profile @@ -30,13 +30,11 @@ PS1='$( printf "\033[?6c" printf "\033]0;%s\007" "$pwd" - - printf "\n\033[0;1;30m%s\033[m%s" "$PWD/" "$(git-status)" - [ "$SSH_CONNECTION" ] && printf " %s" "$(hostname)" - [ "$ABDUCO" ] && printf " %s" "$ABDUCO" - [ "$error" -gt 0 ] && printf " \033[1;31m%s\033[m" "$error" - printf "\n\$ " -)' + printf "\n\033[0;1;30m%s\033[m" "$PWD/" + printf "%s" "$(git-status)" "${ABDUCO:+ $ABDUCO}" "${SSH_TTY:+ $(hostname)}" + [ "$error" -gt 0 ] && printf " \033[1;31m%s\033[m" "$error" +) +$ ' PS2=': ' PS3=': '