From 7fa90bc2c255ab1926e86e27a9ebfc4b4521428f Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 25 Jul 2020 12:20:11 +0200 Subject: [PATCH] Fix duplicate check for interactive bash --- bashrc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index 61364ed..391ad91 100644 --- a/bashrc +++ b/bashrc @@ -2,16 +2,13 @@ # Based on example .bashrc as provided by Debian -# This file is only meant for interactive shells -[[ $- != *i* ]] && return +# If not running interactively, don't do anything +[ -z "$PS1" ] && return # Environment variables go here export LANG=en_US.UTF-8 export PATH=${HOME}/.local/share/perl5/bin:${HOME}/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/bin:/usr/sbin:/sbin:/usr/local/sbin -# If not running interactively, don't do anything -[ -z "$PS1" ] && return - # History control HISTCONTROL=ignoreboth HISTZIE=20000