From 589fb34309a22bb9b372dd9fa8ee65a96f4222ce Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 22 Jan 2020 00:21:12 -0500 Subject: [PATCH] sh: do not export PS1/2 These don't need to be in the inherited environment by children of the shell. It only causes complications in switching between shells anyways. --- bash/bashrc | 4 ++-- sh/shrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index cc0bd73..3af5138 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -48,8 +48,8 @@ if tput setaf 1 &> /dev/null; then RESET="\[$(tput sgr0)\]" PS1_TOP="$BOLD$RED\$(last_err)$BLUE\w $RESET$GRAY$SSH_PROMPT\$(git_info)" - export PS1="$PS1_TOP\n$BOLD$MAGENTA\$ $RESET" - export PS2="$YELLOW> $RESET" + PS1="$PS1_TOP\n$BOLD$MAGENTA\$ $RESET" + PS2="$YELLOW> $RESET" fi # Git completion for ~/.aliases diff --git a/sh/shrc b/sh/shrc index 5c5f77c..5665013 100755 --- a/sh/shrc +++ b/sh/shrc @@ -23,6 +23,6 @@ PS1='$(last_err)$PWD $SSH_PROMPT $ ' PS2="> " -export PATH EDITOR VISUAL PS1 PS2 SSH_PROMPT +export PATH EDITOR VISUAL [ -r "$HOME/.aliases" ] && . "$HOME/.aliases" -- libgit2 0.28.4