Do not distinguish between login and non-login bash

I.e., move all bash related configuration to bashrc, and call it from
bash_profile.  This should make things easier, I hope.
This commit is contained in:
Daniel - 2020-07-25 12:16:23 +02:00
parent a70ea065b9
commit 5ad5e32b9f
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
2 changed files with 7 additions and 4 deletions

View File

@ -1,10 +1,6 @@
# -*- sh -*-
export LANG=en_US.UTF-8
[[ -r /etc/bashrc ]] && . /etc/bashrc
[[ -r ~/.bashrc ]] && . ~/.bashrc
PATH=$HOME/.local/bin/:$PATH
export PATH

7
bashrc
View File

@ -2,6 +2,13 @@
# Based on example .bashrc as provided by Debian
# This file is only meant for interactive shells
[[ $- != *i* ]] && 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