Filippo Giunchedi has submitted this change and it was merged. Change subject: admin: set filippo TERM ......................................................................
admin: set filippo TERM rxvt terminfo is not usually installed and shipping its binary terminfo in here isn't appealing, so default to screen's Change-Id: I8292ee87bc1becdd3fb1a7f2cc7d422f86308211 --- M modules/admin/files/home/filippo/.bashrc 1 file changed, 15 insertions(+), 6 deletions(-) Approvals: Filippo Giunchedi: Verified; Looks good to me, approved diff --git a/modules/admin/files/home/filippo/.bashrc b/modules/admin/files/home/filippo/.bashrc index 0a37ad5..d5632ad 100644 --- a/modules/admin/files/home/filippo/.bashrc +++ b/modules/admin/files/home/filippo/.bashrc @@ -13,10 +13,19 @@ # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" -if [ -n "$PS1" ]; then - RESET="$(tput sgr0)" - BRIGHT="$(tput bold)" - RED="$(tput setaf 1)" - WHITE="$(tput setaf 7)" - export PS1='\[$BRIGHT\]\[$RED\]\h\[$RESET\]:\w\[$BRIGHT\]\[$WHITE\]\$\[$RESET\] ' +# set options for interactive-only shells below +if [ -z "$PS1" ]; then + return fi + +case "$TERM" in + rxvt-unicode-256color) + export TERM=screen-256color + ;; +esac + +RESET="$(tput sgr0)" +BRIGHT="$(tput bold)" +RED="$(tput setaf 1)" +WHITE="$(tput setaf 7)" +export PS1='\[$BRIGHT\]\[$RED\]\h\[$RESET\]:\w\[$BRIGHT\]\[$WHITE\]\$\[$RESET\] ' -- To view, visit https://gerrit.wikimedia.org/r/192287 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I8292ee87bc1becdd3fb1a7f2cc7d422f86308211 Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits