dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 589fb34309a22bb9b372dd9fa8ee65a96f4222ce (patch)
parent b87a3de9a1dad261af28ad2be59497699c6de7cb
Author: Alex Karle <alex@karle.co>
Date:   Wed, 22 Jan 2020 00:21:12 -0500

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.

Diffstat:
Mbash/bashrc | 4++--
Msh/shrc | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -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"